Monday, 8 July 2013

Program to print Addition, Subtraction, Multiplication and Division of two numbers

#include <stdio.h>
void main()
{
int a,b,c,d,e,f;
clrscr ();
printf("Enter the two number");
scanf("%d%d",&a,&b);
c= a+b;
d= a-b;
e= a*b;
f= a/b;
printf("\n\t%d\n\t%d\n\t%d\n\t%d",c,d,e,f);
getch();

}

No comments:

Post a Comment