Predict the output of the following nested loops:
```
int n = 1;
while(n <= 10)
{
int m = 10;
while(m>=1)
{
cout << n << “ times “ << m
<< “ = “ << n*m << endl;
m--;
}
n++;
```
1 times 10 = 101 times 9 = 9. . .
1 times 1 = 12 times 10 = 20. . .
2 times 1 = 23 times 10 = 30. . .
3 times 1 = 34 times 10 = 404 times 9 = 36. . .
4 times 2 = 84 times 1 = 4. . .
9 times 10 = 90
. . .
9 times 1 = 910 times 10 = 100. . .
10 times 1 = 10
You might also like to view...
One of your systems analysis team members has been discouraging user input on quality standards, arguing that because you are the experts, you are really the only ones who know what constitutes a quality system. In a paragraph, explain to your team member why getting user input is critical to system quality. Use an example.
What will be an ideal response?
Attempting to run SQL Server on a machine with the minimum hardware requirements available will result in poor performance and unpredictable functionality.
Answer the following statement true (T) or false (F)
The destructive event or prank a malware delivers is its ______.
Fill in the blank(s) with the appropriate word(s).
Which of the following is information that is unlikely to result in a high-level financial loss or serious damage to the organization but still should be protected?
a. Private data b. Public data c. Confidential data d. Sensitive data