Program to find sum of two numbers

Program to find sum of two numbers:- Given two number a and b.perform sum on number and store in variable sum. sum=a+b

#include<stdio.h>
void main()
{
int a,b,sum;

printf("Enter two no:\n ");
scanf("%d%d",&a,&b);

sum=a+b;
printf("sum is=%d",sum);
}

Related Posts