Loops Flashcards
1
Q
while loop syntax
A
while (condition) {
}
2
Q
for loop syntax
A
for (int i = value; i < condition; i++) {}
(note: the parameters changes based on question)
while loop syntax
while (condition) {
}
for loop syntax
for (int i = value; i < condition; i++) {}
(note: the parameters changes based on question)