Question: Write a C program that stores the integer value 5 in the variable save1 and the integer value 2 in the variable save2. (Make sure
Write a C program that stores the integer value 5 in the variable save1 and the integer value 2 in the variable save2. (Make sure to declare the variables as integers.) Have your program calculate the total of these numbers and their average. The total should be stored in the variable named total and the average in the variable named average. (Use the statement average = total/2.0; to calculate the average.) Use the printf() function to display the total and average. Please upload .c source code files directly from the compiler used.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
