What will be the output of the following pseudocode?
Integer i, c
Set c = 0
for (each i from 1 to 100)
if (i mod 6 == 0 and i mod 9 != 0)
c = c + 1
End if
End for
Print c16
15
11
5
The verified answer and full solution are one login away
Every answer here is machine verified, with a step-by-step solution that teaches the method. Your login also unlocks a 7-question mock preview in the real exam interface.
Log in to see the answer