Getting Started    

for

The for loop repeats a group of statements a fixed, predetermined number of times. A matching end delineates the statements.

The semicolon terminating the inner statement suppresses repeated printing, and the r after the loop displays the final result.

It is a good idea to indent the loops for readability, especially when they are nested.


  switch and case while