#include<stdio.h>
int main()
{
int var2;
int var1;
int var3;
printf("Type your frist value to add : ");
scanf("%i",&var1);
printf("Type your second value to add : ");
scanf("%i",&var2);
var3 =var2+var1;
printf("Total of your value = %i",var3);
return 0;
}
OUTPUT
Type Your First Value to Add: 10
Type Your Second Value to Add: 12
Total of your value= 22
int main()
{
int var2;
int var1;
int var3;
printf("Type your frist value to add : ");
scanf("%i",&var1);
printf("Type your second value to add : ");
scanf("%i",&var2);
var3 =var2+var1;
printf("Total of your value = %i",var3);
return 0;
}
OUTPUT
Type Your First Value to Add: 10
Type Your Second Value to Add: 12
Total of your value= 22
ConversionConversion EmoticonEmoticon