Question & Answer: Nested for loop for(int j=3; j>=1; j–) { for(int k=3; k…..

Nested for loop for(int j=3; j>=1; j–) { for(int k=3; k<=5; k++) cout<<j*k<<” “; cout<<endl; }

Expert Answer

 

Note:If u need any other info just tell me.So that i will add it.Thank You.

_________________

for(int j=3; j>=1; j–)

{

for(int k=3; k<=5; k++)

cout<<j*k<<” “;

cout<<endl;

}

_________________

Output:

9 12 15

6 8 10

3 4 5

___________________

Reason:

the outer for loop will decrement the values from 3 to 1

the inner for loop will increment the values from 3 to 5

for every iteration the value of ” i ” and ” j ” will be multiplied and displayed on the screen

Still stressed from student homework?
Get quality assistance from academic writers!