- #1
find_the_fun
- 148
- 0
Consider the following program segment where i,j and k are integer variables
for i := 1 to 12 do
for j := 5 to 10 do
for k := 15 downto 8 do
printf (i-j)*k
How many time is the print statement executed?
I thought it would be 12x5x7 but the answer key has 576?
for i := 1 to 12 do
for j := 5 to 10 do
for k := 15 downto 8 do
printf (i-j)*k
How many time is the print statement executed?
I thought it would be 12x5x7 but the answer key has 576?