5. Loop Programs
while, do – while, for
while, do – while, for
1. WAJP to print 1 to 10.
2. WAJP to print Odd numbers from 1 to 10.
3. WAJP to print Even numbers from 1 to 10.
4. WAJP to print table of 5.
5. WAJP to print table of user given number.
6. WAJP to print 1 to 10 in Reverse.
7. WAJP to print all Odd numbers from 10 to 1.
8. WAJP to print all Even numbers from 10 to 1.
9. WAJP to print the number where Last Limit will be given by user.
10. WAJP to print the number in Reverse order where First Limit will be given by user.
11. WAJP to print the number in Odd Numbers in Reverse order where Limit will be given by user.
12. WAJP to print the number in Even Numbers in Reverse order where Limit will be given by user.
12. WAJP to print the Formatted Table.(9 x 1 = 9, 9 x 2 = 18, . . . ,9 x 10 = 90)
13. WAJP to print the name 10 times.
14. WAJP to print the Sum of Natural Numbers. ( s=1 + 2 + 3 + 4 + 5)
Output: (The sum is 15)
15. WAJP to print to find the Factorial of any number. (!4=4 x 3 x 2 x 1)
Output: (The Factorial is 24)