/* Two Variable of sum */
#include
int main()
{
int var1;
int var2;
int var3;
printf("Enter your frist value to add : ");
scanf("%i",&var1);
printf("Enter your second value to add : ");
scanf("%i",&var2);
var3 =var2+var1;
printf("Enter of your value = %i",var3);
getch();
clrscr();
return 0;
}
Output:
#include
int main()
{
int var1;
int var2;
int var3;
printf("Enter your frist value to add : ");
scanf("%i",&var1);
printf("Enter your second value to add : ");
scanf("%i",&var2);
var3 =var2+var1;
printf("Enter of your value = %i",var3);
getch();
clrscr();
return 0;
}
Output:
No comments:
Post a Comment