C-18-Q037mediumsingle_mcq
To display the text ICT 3 times using a while loop, the counter is typically initialized as:
To display the text ICT 3 times using a while loop, the counter is typically initialized as:
- a
count=0thenwhile count<3 - b
count=1thenwhile (count<=3) - c
count=3thenwhile count<=0 - d
count=10thenwhile count==0
ব্যাখ্যা
Starting at count=1 with while (count<=3) lets the loop run for count values 1, 2, and 3 — exactly three times. This matches the textbook's standard counting pattern.