Solved

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

Question 33

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents