Interpret the pseudo code below and give the output that would appear on the scr
ID: 3751918 • Letter: I
Question
Interpret the pseudo code below and give the output that would appear on the screen.Loop(i=9; i>5; i- - ) { Loop(j=5; j>3 ; j- -) { print the value of i on the current line } Print a blank line } Interpret the pseudo code below and give the output that would appear on the screen.
Loop(i=9; i>5; i- - ) { Loop(j=5; j>3 ; j- -) { print the value of i on the current line } Print a blank line }
Loop(i=9; i>5; i- - ) { Loop(j=5; j>3 ; j- -) { print the value of i on the current line } Print a blank line }
Explanation / Answer
Loop(i=9; i>5; i-- ) { Loop(j=5; j>3 ; j--) { print the value of i on the current line } Print a blank line } when i is 9 output is 5 4 when i is 8 output is 5 4 when i is 7 output is 5 4 when i is 6 output is 5 4 So, Output of this code is ---------------------------- 5 4 5 4 5 4 5 4
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.