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,...