Question PSC-COND-0019
HardWhat will be the output of the following pseudocode?
Integer count = 0
for (each a from 1 to 10)
for (each b from 1 to 10)
if (a < b AND (a + b) mod 5 == 0)
count = count + 1
end if
end for
end for
Print count
- A.
9
- B.
10
- C.
Sign up free to see the answer and a step-by-step explanation.