You need to log-in or subscribe in order to use Student access.

D.3 Program development repetition statements - For Loops - Exercises

1. In each loop state what is printed. a) b)c) d)e)f)g) h)i)j)2. Solve the following problems using for loops. a) Calculate how many times the character "a" appears in a sentence. Use the sentence below as a test. "I"ve seen things you people wouldn"t believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhäuser Gate. All those moments will be lost in time, like tears...in...rain....

To access the contents of this site, you must subscribe.

Help