Question: How many times is the print statement executed for the following program segment? (Here, i, j, k, and m are integer variables.) for i :
for i : = 1 to 20 do
for j : = 1 to i do
for k : = 1 to j do
for m : = 1 to k do
print (i * j) + (k * m)
Step by Step Solution
3.43 Rating (166 Votes )
There are 3 Steps involved in it
Here there are r 4 nested for loops so ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
954-M-L-A-L-S (7268).docx
120 KBs Word File
