Question: How to solve it by using C program Concepts to Practice .Simple input/output Integer variables Arithmetic operators Description For the prelab assignment, write a C
Concepts to Practice .Simple input/output Integer variables Arithmetic operators Description For the prelab assignment, write a C program that reads in three integer numbers from user input. Save the absolute value of the three integers in variables named A, B, and C. Consider that if the user enters a negative number, you can just multiply that number by-1 (negative 1) to get the absolute value. Print the values of A, B, and C. Print the value of A, B, and C added together. Print the value of A, B, and multiplied together Sample Output 1 (bold case shows user input) jer676@tc-m610-login-node623: >compile prelab2.c jer676@tc-m618-login-node623:./a.out Enter 3 integers separated by spaces: 3 4 5 Initial values A 3 Calculated values A plus B plus C 12 A times B times C 6e Sample Output 2 (bold case shows user input) jer676@tc-m610-login-node623:>compile prelab2.c jer676@tc-m610-login-node623:/a.out Enter 3 integers separated by spaces: -2 7-3 Initial values A 2 Calculated values** A plus B plus C-12 A times B times C-42
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
