D.3 Program development repetition statements Answers
1. In each loop state what is printed. a) 012345 b) 1591317 c) 543210 d) 13579 e) 6 f) 12 g) 16 h) Nothing printed as i is 0 at the beginning. i) #################### j) 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 2. Solve the following problems using for loops. a) Calculate how many times the character 'a' appears in a sentence....