Question: write a C program fro the above question using data supplied from the first question. 5 T his program multiplies two integers together and prints

 write a C program fro the above question using data suppliedfrom the first question. 5 T his program multiplies two integers together

write a C program fro the above question using data supplied from the first question.

5 T his program multiplies two integers together and prints the product 7 #define CRT SECURE NO WARNINGS 9 #include 10 11 int main() 12 13 14 15 16 17 18 19 int number1; int number2; int product; printf("Enter an integer: "); scanf("%d", &number1); printf("Enter a second integer: "); scanf("%d", &number2); product -number1 number2; printf("The product of %d and %d is %d . ", return e; 20 21 number1, number2, product); 23 1. Modify the multiplication program done in class (version that prompts user to enter two numbers from the keyboard) as follows: Change declarations so that all variables are doubles. In addition to the variables numberl and number2, you should allow for variables for a third input number (number3), and also for product, quotient, and average instead of just one variable for result. Prompt the user and read in values for the three numbers using appropriate conversion specifiers for doubles. Calculate the product of the three numbers, the quotient of the sum of the first two numbers divided by the third number, and the arithmetic average of the three numbers. Print labeled results using f format with two decimal digits for quotient and average and e format with 3 digits after the decimal point (when in e format) for the product

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!