C Programming
Program to input two nos and perform simple operation.void main()
{
int a,b;
printf("Enter two nos.");
scanf("%d%d", &a,&b);
printf("\nAddition=%d",a+b);
printf("\nSubstraction=%d",a-b);
printf("\nMultiplication=%d",a*b);
printf("\nDivision=%d",a/b);
getch();
}
Input : 100 20
Output: Addition=120
Substraction=80
Multiplication=2000
Division=5
C Programming