For Loop:

Q1: Write a program that calculates the sum of all numbers from 1 to N using loops.

Q2: Write a program to calculate the factorial of a given number using loops.

Q3: Print all even numbers from 1 to N using a loop.

Q4: Generate a multiplication table for a given number from 1 to 10 using loops.

Q5: Write a program to check if a given number is prime or not using loops.

Q6: Generate the first N numbers of the Fibonacci sequence using loops.

Q7: Write a program to check if a given string or number is a palindrome using loops.

Q8: Find the prime factorization of a given number using loops.

Q9: Write a program to calculate the power of a number (e.g., a^b) using loops.

Q10: Take two numbers as input from the user. Find the greatest common divisor (GCD) and least common multiple (LCM) of the two numbers. Use for loop for this purpose.