You are going to write one C program that asks the user to input two numbers. Then your program should output the differ
Posted: Fri May 20, 2022 5:30 pm
You are going to 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