Final Revision Sheet (Questions)
Final Revision Sheet (Questions)
Loops
11. Write a program that prints all numbers from 1 to 100.
12. Create a program that prints the sum of all even numbers from 1 to 50.
13. Write a program that prints the multiplication table of a given number using a
for loop.
14. Write a program that reads a list of numbers (terminated by -1) and prints their
sum.
15. Create a program that finds the factorial of a given number using a while loop.