Loops coding challenges

Practise loops with 58 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Easy · 36 Medium · 22

Skills you'll practise: Nested loopsSymmetryDigit sumPaddingRecurrencesSieve of EratosthenesSquare root boundBit shiftsConditionsDigit extractionDivisibilityDivisor pairs
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
341
Challenges
245
Solutions shared
9
Languages

All challenges

Search by name or topic, or filter by difficulty.

58 challenges
Easy

Disarium Number

Check whether a number equals the sum of its digits raised to their positions.

You'll learn Digit positionsInteger powers
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet
Easy

Spy Number

Check whether the sum of a number's digits equals the product of its digits.

You'll learn Digit sumDigit product
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet
Easy

Alphabet Triangle

Print a right triangle of letters where row i spells the first i letters of the alphabet.

You'll learn Nested loopsCharacter codes
BeginnerCS1High schoolLoopsNested-loopsPatterns
No solutions yet
Easy

Neon Number

Check whether the digit sum of a number's square equals the number.

You'll learn Digit sumSquaring
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet