C++ codes
1. Write a program that prints the numbers from 1 to 10 using a for loop.
2. Write a program that prints the even numbers from 1 to 20 using a for loop.
3. Write a program that calculates the sum of all even numbers from 1 to 50 using a for loop.
4. Write a program that prints the multiplication table of a number entered by the user using a for loop.
5. Write a program that calculates the factorial of a number entered by the user using a for loop.
6. Write a program that calculates the average of numbers entered by the user using a for loop.