Hi, im not too sure how to desk check but i've got a fair idea, though would like if you could use this code as a example to show me how to do it, ive got a question which ill show underneath, i've already done the flowchart and determined what this codes output will be. any help would be appreciated.
For the following C++ program
#include <iostream>
using namespace std;
int main()
{
int num = 0;
while (num <= 20)
{
num++;
cout << num << " ";
}
return 0;
}
determine the total number of items displayed, and the first and last numbers printed. Draw the flow chart for the C++ program, and then desk-check the program for the first 5 steps and the last 3.