Question: Include iostream header file Instructions Consider the following program segment: //include statement(s) //using namespace statement int main() { //variable declaration //executable statements //return statement }

Include iostream header file

Instructions

Consider the following program segment:

//include statement(s) //using namespace statement int main() { //variable declaration //executable statements //return statement } 

Write a C++ statement that includes the header file iostream.

Proceed through all the steps in this activity by clicking the navigation arrows at the bottom of this pane after completing each step.

Instructions

Consider the following program segment:

//include statement(s) //using namespace statement int main() { //variable declaration //executable statements //return statement } 

Write a C++ statement that includes the header file iostream.

Proceed through all the steps in this activity by clicking the navigation arrows at the bottom of this pane after completing each step.

Step 1: Write a C++ statement that allows you to use cin, cout, and endl without the prefix std::.

Step 2: Write C++ statement(s) that declare the following variables: num1, num2,num3, and average of type int.

Step 3: Write C++ statements that store 125 into num1, 28 into num2, and 25 into num3.

Step 4: Write a C++ statement that stores the average of num1, num2, and num3 into average.

Step 5: Write C++ statement(s) that output the values of num1, num2, num3, and average.

Then compile and run your program by clicking the blue run button on the right side of the screen.

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!