Question: write one C program that asks the user to input two numbers. Then your program should output the difference (subtraction) of those two numbers,

write one C program that asks the user to input two numbers. Then your program should output the difference

write one C program that asks the user to input two numbers. Then your program should output the difference (subtraction) of those two numbers, product (multiplication) of the same two numbers that the user entered, and the square of each of the two numbers. To square a number, multiply the number by itself. You can use the int data type for this assignment. Please note that your program should work for any two numbers entered by the user and not just those shown in following test case scenario. You need to write only one program that accomplishes all the required tasks of subtraction, squaring and multiplication. Interaction with your program might look like this: Enter the first number: 7 You entered 7 Enter the second number: 5 You entered 5 The difference is 2. The product is 35. Square of 7 is 49. Square of 5 is 25. ==========

Step by Step Solution

3.52 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a simple C program that fulfills the requirements you specified include int main Declare va... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!