Professional Documents
Culture Documents
C Programming Homework
C Programming Homework
Break Statement
Continue Statement
Loop
Counter-controlled repetition
Sentinel-controlled repetition
4). for loop begins by setting counter to 1 and repeats while counter <= 10. Each
time the end of the loop is reached, counter is incremented by 1. State whether
the above sentence is True or False.
5).
for ( j = x; j <= 4 * x * y; j += y / x ) is equivalent to for ( j = 2; j <= 80; j
+= 5 ) .
State whether the above code snippet is True or False
6). Define a do..while statement.
7). What are the two common uses of a break statement.
8). What are the three common uses of a continue statement