(Desk check)
a. For the following program, determine the total number of items displayed as well as the first and last numbers printed:
Program:
#includeusing namespace std;int main(){int num = 0;while (num <= 20){num++;cout << num << " ";}return 0;} b. Enter and run the program in Exercise a to verify your answers to the exercise.
c. How would the output be affected if the two statements in the compound statement were reversed (that is, if the cout statement came before the ++n statement)?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.