Question: Write a C + + statement that includes the header file iostream. Include the standard namespace. Declare four integer type variables: num 1 , num

Write a C++ statement that includes the header file iostream.
Include the standard namespace.
Declare four integer type variables: num1, num2, num3, average.
Store the following values in the assigned variables: num1=125, num2=28, num3=-25, average =0.
Calculate the average of the three variables and store this value in the average variable.

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!