write a program in C to print all Arithmetic operator
//write a program in c to print all arithmetic operator
#include <stdio.h>
int main()
{
int a=50, b=10, sum, sub, mul, rem, div;
sum=a+b;
sub=a-b;
mul=a*b;
rem=a%b;
diva=a/b;
printf("\n sum=%d", sum);
printf("\n sub=%d", sub);
printf("\n mul=%d", mul);
printf("\n rem=%d", rem);
printf("\n div=%d", div);
return 0;
}
Comments
Post a Comment