Consider the code segment:
int Num = 13;
cin >> Num;
if (Num <= 15)
cout << 13 << setw(2) << Num;
cout << '+';
Suppose the user has typed in: 14 3 x8 7
The output from this code is: _____________
i get that your reading in a number which is 13, and that while the num is less than or equal to 15 you output 13 and then the num with the '+'. but im not understanding the input
Consider the code segment below.
int i, j; // Loop variables.
for (i=4; i>1; i--)
{
cout << endl;
for (j _________________ ) //**********************
{
cout << j << ' ' ;
}
}
Suppose the ouput below is produced by this code:
1 2 3 4
1 2 3
1 2
DIRECTIONS: Write the for control [for(initial;test;update)] for
the INNER loop.
NOTE 1: USE inclusive inequality, e.g. k<=5 (q>=4) ... NOT k<6 (q>3) .
NOTE 2: USE the -- or ++ operator, as needed.