xxxxxxxxxx
#include<stdio.h>
#define p printf
#define s scanf
main()
{
int a,b,sum,diff,prod,qout;
p("\nFirst number: ");
s("%d",&a);
p("\nSecond number: ");
s("%d",&b);
p("\nSum of two numbers: %d",sum=a+b);
p("\nDifference of two numbers: %d",diff=a-b);
p("\nProduct of two numbers: %d",prod=a*b);
p("\nQoutient of two numbers: %d",qout=a/b);
}
xxxxxxxxxx
#include<stdio.h>
main()
{
int n1,n2,sum,prod,diff,qou,rem;
printf("Enter first number: ");
scanf("%d",&n1);
printf("Enter second number: ");
scanf("%d",&n2);
sum=n1+n2;
prod=n1*n2;
diff=n1-n2;
qou=n1/n2;
rem=n1%n2;
printf("\nThe sum is: %d",sum);
printf("\nThe product is: %d",prod);
printf("\nThe difference is: %d",diff);
printf("\nThe qoutient is: %d",qou);
printf("\nThe remainder is: %d",rem);
}