#include
void main(void)
{
int value1 ,value2,sum;
printf("enter first value");
scanf("%d",&value1);
printf("enter second value");
scanf("%d",&value2);
sum = value1+value2;
printf("sum is :",sum);
}
note:
%d = format specifier for integer;
scanf is used to take input from user;
No comments:
Post a Comment