Solved

Predict the Output of the Following Nested Loops:
Int N \quad

Question 7

Essay

Predict the output of the following nested loops:
int n = 1;
while(n <= 10)
{
\quad int m = 10;
\quad while(m>=1)
\quad {
\quad\quad cout << n << " times " << m
\quad\quad\quad << " = " << n*m << endl;
\quad\quad m--;
\quad }
\quad n++;
}

Correct Answer:

verifed

Verified

The output is a multiplication table
1 t...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions