For Loop Programming
- Write a program to print all natural numbers from 1 to n.
- Write a program to print all natural numbers in reverse (from n to 1)
- Write a program to print all alphabets from a to z.
- Write a program to print all even numbers between 1 to 100.
- Write a program to print all odd numbers between 1 to 100.
- Write a program to find the sum of all natural numbers between 1 to n.
- Write a program to find the sum of all even numbers between 1 to n
- Write a program to find the sum of all odd numbers between 1 to n
- Write a program to print a multiplication table of any number.
- Write a program to print all ASCII characters with their values
- Write a program to find the power of a number using for loop
- Write a program to find all factors of a number
- Write a program to calculate the factorial of a number
- Write a program to find the HCF (GCD) of two numbers
- Write a program to find the LCM of two numbers
- Write a program to check whether a number is a Prime number.
- Write a program to print all Prime numbers between 1 to n.
- Write a program to find the sum of all prime numbers between 1 to n
- Write a program to find all prime factors of a number
- Write a program to check whether a number is a Perfect number or not
- Write a program to print all Perfect numbers between 1 to n.