Program Code
#include <stdio.h>
int main ()
{
int a;
int b;
int sum;
a = 50;
b = 60;
sum = a + b;
printf("sum is %d",sum);
return 0;
}
Program details:
At first we named three variables as our wish.I took a,b, and sum.Here i assigned 50 for a and 60 for b.sum= a+b means i assigned a value in sum which is equal to a+b.You already know about the printf function.Here it commanded to print the value of sum.
Work for you:
Now you have to do subtraction,multiplication and division following this program.When you done post your program in comment box here or in our facebook group Coder Mania BD.
## If you face any problem with C program join our facebook group C Clinic by Coder Mania BD to get solution.
Thanks for being with Coder Mania BD.