Feed Headline Animator

Write a program to perform the arithmetic operations by using all arithmetic operators. Also print the result on the screen( Arithmetic Operators)

Main( )
{
int p,s,m,d,r;
p=8+2;
s=8-2;
m=8*2;
d=8/2;
r=8%3;
printf(“Addition of 8 & 2 is = %d/n”,p);
printf(“Subtraction of 8&2 is=%d/n”,s);
printf(“Multiplication of 8&2 is=%d/n”,m);
printf(“Division of 8&2 is=%d/n”,d);
printf(“Remainder of 8/2 is=%d/n”,r);
}

Posted by: Wasim Javed

No comments:

Post a Comment