Program List - Loops

  1. Natural numbers from 1 to N
  2. Odd numbers from 1 to N
  3. Print Odd numbers between an interval
  4. Even numbers from 1 to N
  5. Print even numbers between interval
  6. Sum of first N natural numbers
  7. Sum of odd numbers in given range
  8. Sum of even numbers in given range
  9. Product of odd integers in given range
  10. Product of even integers in given range
  11. Print square, cube and square root of numbers from 1 to N
  12. Sum and average of 10 numbers
  13. Print uppercase alphabets using while loop
  14. Print uppercase letters using for loop
  15. Print lowercase alphabets using while loop
  16. Print lowercase alphabets using for loop
  17. Print reverse counting between an interval
  18. Table of a number
  19. Print table of tables between interval
  20. Calculate factorial of a number
  21. Calculate the sum of following series
  22. Calculate x raised to the power of y
  23. Find range of set of numbers
  24. Print A.P. Series
  25. Calculate the sum of A.P. Series
  26. print G.P. series
  27. Calculate the sum of G.P. series
  28. Count number of digits in integer
  29. Calculate the sum of digits of the number
  30. Count frequency of digits in an integer
  31. Reverse of an integer
  32. Number is palindrome or not
  33. Swap first and last digit of a number
  34. Entered number is zero, positive or negative
  35. Print all leap years from 1 to N
  36. Number is prime or not
  37. Print all prime numbers from 1 to 300
  38. Print all prime numbers from 1 to N
  39. Print all prime numbers between an interval
  40. Check whether a number can be expressed as a sum of two prime numbers or not
  41. Integers between two floating point numbers
  42. Fibonacci series
  43. Display factors of a number
  44. GCD or HCF of two numbers
  45. LCM of two numbers
  46. Generate all combinations of 1, 2 and 3
  47. Matchstick Game
  48. Find all numbers between 100 and 200, divisible by 9
  49. Find all numbers between an interval, divisible by a specific number
  50. Number is a perfect number or not
  51. Find perfect numbers between an interval
  52. Number is a strong number or not
  53. Find strong numbers between an interval
  54. Number and asterisks
  55. Generate Pythagorean triplets
  56. Count the number of ways to divide a number in 4 parts