Saturday, April 27, 2019

IO 10

#include <stdio.h>
int main()
{
int a,c;
scanf ("%d%d",&a,&c);
    c = a;
printf
("c=d \n", c);
c
+= a;
printf
("c+=%d \n", c);
c
-= a;
printf
("c-=%d \n", c);
c
*= a;
printf
("c*=%d \n", c);
c
/= a;
printf
("c/=%d \n", c);
c
%= a;
printf
("c%=%d \n", c);
return 0;
}

No comments:

Post a Comment

Parity

Problem Description Ram and Sita playing the parity game. Two types of parity are there. One is odd parity and next is even parity. Ram will...