Answer to Question #23397 in Visual Basic for Andrew

Question #23397
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();
}


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS