Which one of the following sentences is true ?
A. The body of a while loop is executed at least once.
B. The body of a do … while loop is executed at least once.
C. The body of a do … while loop is executed zero or more times.
D. A for loop can never be used in place of a while loop.
Answer:B
Which one of the following sentences is true ?
A. The body of a while loop is executed at least once. B. The body of a do … while loop is executed at least once. C. The body of a do … while loop is executed zero or more times. D. A for loop can never be used in place of a while loop.