8
AssignmentMultiple Choice

Introduction to the For Loop

Question 8 • ASC Programming, Games, Apps and Society

Which of the following is the correct syntax to begin a for loop?

Answer
A
system (int x=1 ; x<=5; x++) loop
B
loop (int x=1 ; x<=5; x++) do
C
for (int x=1 ; x<=5; x++);
D
while (int x=1 ; x<=5; x++)
Previous
Next