Question: Include Write three C statements that declare the following integer variables and initialize each to zero: num1 num2 num3 Write one C statement that declares
Include
- Write three C statements that declare the following integer variables and initialize each to zero: num1 num2 num3
- Write one C statement that declares the following floating point variable: myAverage
- Write C statements that store: 125 into num1 28 into num2 -25 into num3
- Write a C statement that stores the average of num1, num2, and num3 into the variable myAverage
- Write C statements that output the values of num1, num2, num3, and myAverage;
- with labels like "num1 = ..."
- each on their own lines
- Write a C statement to return a 0 at the completion of the program
Output should look like.
num1 = 125
num2 = 28
num3 = -25
average = 42.66667
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
