Topic Practice · Control Flow
Loops problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. Sum from 1 to N
4 test casesEasy✓2. Multiplication Table
3 test casesEasy✓3. Count to N
4 test casesEasy✓4. Even Numbers
4 test casesEasy✓5. Countdown
4 test casesEasy✓6. Sum of Inputs
4 test casesEasy✓7. Product of Odd Numbers
4 test casesEasy✓8. Sum of Odd Numbers
4 test casesEasy✓9. Table of Squares
4 test casesEasy✓10. Count Down by Steps
4 test casesEasy✓11. Largest Without max()
4 test casesEasy✓12. Print a Word n Times
4 test casesEasy✓13. Sum 1 to n
4 test casesEasy✓14. Multiplication Table
4 test casesEasy✓15. Odd Numbers up to n
4 test casesEasy✓16. Count a Letter With a Loop
4 test casesEasy✓17. Factorial With a Loop
5 test casesEasy✓18. One Letter per Line
4 test casesEasy✓19. Double Until Over 100
4 test casesEasy✓20. Skip Multiples of 3
4 test casesEasy✓21. Square of Stars
4 test casesEasy✓22. Stop at a Negative
4 test casesEasy✓23. Factorial
4 test casesMedium✓24. Prime Check
5 test casesMedium✓25. Fibonacci Series
3 test casesMedium✓26. Count Digits with a Loop
4 test casesMedium✓27. Reverse a Number
4 test casesMedium✓28. Number Triangle
4 test casesMedium✓29. Greatest Common Divisor
4 test casesMedium✓30. Collatz Steps
4 test casesMedium✓31. Armstrong Number
5 test casesMedium✓32. Guessing Game
4 test casesMedium✓33. Powers of Two up to n
4 test casesMedium✓34. Hollow Square
4 test casesMedium✓35. Every Pair
4 test casesMedium✓36. Is It Prime?
5 test casesMedium✓37. Count Each Digit
4 test casesMedium✓38. First n Fibonacci Numbers
4 test casesMedium✓39. Number Square Pattern
4 test casesMedium✓40. How Many to Reach the Target?
4 test casesMedium✓41. Star Pyramid
3 test casesHard✓42. Diamond
4 test casesHard✓43. List the Primes
4 test casesHard✓44. Perfect Number
5 test casesHard✓45. Add Digits Until One Is Left
4 test casesHard✓46. Floyd's Triangle
4 test casesHard✓47. Happy Number
5 test casesHard✓48. Prime Factorisation
6 test casesHard✓49. Count the Primes Quickly
5 test casesHard✓50. Digits After the Decimal Point
5 test casesHard
4 test casesEasy✓2. Multiplication Table
3 test casesEasy✓3. Count to N
4 test casesEasy✓4. Even Numbers
4 test casesEasy✓5. Countdown
4 test casesEasy✓6. Sum of Inputs
4 test casesEasy✓7. Product of Odd Numbers
4 test casesEasy✓8. Sum of Odd Numbers
4 test casesEasy✓9. Table of Squares
4 test casesEasy✓10. Count Down by Steps
4 test casesEasy✓11. Largest Without max()
4 test casesEasy✓12. Print a Word n Times
4 test casesEasy✓13. Sum 1 to n
4 test casesEasy✓14. Multiplication Table
4 test casesEasy✓15. Odd Numbers up to n
4 test casesEasy✓16. Count a Letter With a Loop
4 test casesEasy✓17. Factorial With a Loop
5 test casesEasy✓18. One Letter per Line
4 test casesEasy✓19. Double Until Over 100
4 test casesEasy✓20. Skip Multiples of 3
4 test casesEasy✓21. Square of Stars
4 test casesEasy✓22. Stop at a Negative
4 test casesEasy✓23. Factorial
4 test casesMedium✓24. Prime Check
5 test casesMedium✓25. Fibonacci Series
3 test casesMedium✓26. Count Digits with a Loop
4 test casesMedium✓27. Reverse a Number
4 test casesMedium✓28. Number Triangle
4 test casesMedium✓29. Greatest Common Divisor
4 test casesMedium✓30. Collatz Steps
4 test casesMedium✓31. Armstrong Number
5 test casesMedium✓32. Guessing Game
4 test casesMedium✓33. Powers of Two up to n
4 test casesMedium✓34. Hollow Square
4 test casesMedium✓35. Every Pair
4 test casesMedium✓36. Is It Prime?
5 test casesMedium✓37. Count Each Digit
4 test casesMedium✓38. First n Fibonacci Numbers
4 test casesMedium✓39. Number Square Pattern
4 test casesMedium✓40. How Many to Reach the Target?
4 test casesMedium✓41. Star Pyramid
3 test casesHard✓42. Diamond
4 test casesHard✓43. List the Primes
4 test casesHard✓44. Perfect Number
5 test casesHard✓45. Add Digits Until One Is Left
4 test casesHard✓46. Floyd's Triangle
4 test casesHard✓47. Happy Number
5 test casesHard✓48. Prime Factorisation
6 test casesHard✓49. Count the Primes Quickly
5 test casesHard✓50. Digits After the Decimal Point
5 test casesHard