C Programming
Simple Operations in C

void main()
{
int a,b;

clrscr();

printf("Enter Two No.");


scanf("%d%d",&a,&b);

printf("\nsum=%d", a+b);

printf("\nSubs=%d",a-b);

 printf("\nMulti=%d", a*b);

printf("\nDivision=%d",a/b);

getch();

}

Note:
  1. a, b is integer variable which will store integer value range -32768- +32767
  2. clrscr() is the function which wiil clear the screen and set the cursor at first position on the screen.
  3. printf() is the function that display :-  Enter Two No.
  4. scanf() store the value that we give on console in the respective variable i.e.- a,b
  5. printf("\nsum=%d", a+b) -> "\n" change the line and set cursor at new line. "sum=" is the message and a+b add the value of a and b and also print it.
  6. getch() waits untill we press.