Loops Programs
1.Print numbers from 1 to N
Write a program to print numbers from 1 to a given number using a loop.
2.Print even numbers between two values
Write a program to print all even numbers between two given limits.
3.Sum of first N natural numbers
Write a program to calculate the sum of the first N natural numbers using a loop.
4.Factorial of a number
Write a program to calculate the factorial of a number using a loop.
5.Multiplication table
Write a program that prints the multiplication table of a given number.
6.Reverse a number
Write a program to reverse the digits of a given number using a loop.
7.Check for palindrome number
Write a program to check if a number is a palindrome (same forward and backward).
8.Count digits in a number
Write a program to count the number of digits in an integer.
9.Print Fibonacci series
Write a program to print the Fibonacci series up to N terms using a loop.
10.Print a pyramid pattern
Write a program to print a pyramid or triangle pattern using stars (*) with nested loops.