Practice level 5 · Easy · 45 programs

Loops

Digits, factorial, prime, Armstrong, GCD and LCM.

The programs in this level

  1. Print 1 to 100
  2. Print 100 to 1
  3. Print even numbers 1–100
  4. Print odd numbers 1–100
  5. Print multiples of 5
  6. Print multiplication table
  7. Print multiplication tables 1–10
  8. Find sum 1 to N
  9. Find sum of even numbers
  10. Find sum of odd numbers
  11. Find factorial
  12. Count digits
  13. Find sum of digits
  14. Reverse a number
  15. Check palindrome number
  16. Find first digit
  17. Find last digit
  18. Find product of digits
  19. Find largest digit
  20. Find smallest digit
  21. Count even digits
  22. Count odd digits
  23. Count zeroes
  24. Find power using loop
  25. Calculate x^n
  26. Print Fibonacci series
  27. Find Nth Fibonacci number
  28. Check Armstrong number
  29. Check perfect number
  30. Check strong number
  31. Check prime number
  32. Print prime numbers
  33. Count prime numbers
  34. Find prime factors
  35. Find GCD
  36. Find LCM
  37. Find GCD and LCM together
  38. Check perfect square
  39. Check perfect cube
  40. Find all divisors
  41. Count divisors
  42. Sum of divisors
  43. Check abundant number
  44. Check deficient number
  45. Generate multiplication table dynamically

Unlock this lesson

Create a free account, then buy the course to open every lesson.

Everything in C Programming: BCA, MCA, BTech & O Level

  • 37 step-by-step lessons
  • 10 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account