πŸ“Š C Programming
Q. How many times do we get through the following loop?
Code:
for ( counter = 2; counter < 9; counter += 2 )
  • (A) 4
  • (B) 5
  • (C) 7
  • (D) 8
πŸ’¬ Discuss
βœ… Correct Answer: (A) 4

Explanation: From 2 to 9 with Step = 2. So we get through the loop 4 times. (2 -> 4 -> 6 -> 8).

Explanation by: Admin
From 2 to 9 with Step = 2. So we get through the loop 4 times. (2 -> 4 -> 6 -> 8).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
193
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
89%
Success Rate