your program should should prompt the user to input 2 numbers by giving the user the Sum, Difference, Product, Quotient of two numbers. will be an interactive program.
1
Expert's answer
2013-01-31T09:27:46-0500
#include<stdio.h> void main() { int a,b,c; printf("enter value of a and b:"); scanf("%d %d",&a,&b"); c=a+b; printf("sum is %d",c); c=a*b; printf(" product is %d"c); c=a-b; printf("difference is%d",c); c=a/b; printf('quotient is%d",c); getch(); }
Comments
Leave a comment