Practice level 5 · Easy · 45 programs
Loops
Digits, factorial, prime, Armstrong, GCD and LCM.
The programs in this level
- Print 1 to 100
- Print 100 to 1
- Print even numbers 1–100
- Print odd numbers 1–100
- Print multiples of 5
- Print multiplication table
- Print multiplication tables 1–10
- Find sum 1 to N
- Find sum of even numbers
- Find sum of odd numbers
- Find factorial
- Count digits
- Find sum of digits
- Reverse a number
- Check palindrome number
- Find first digit
- Find last digit
- Find product of digits
- Find largest digit
- Find smallest digit
- Count even digits
- Count odd digits
- Count zeroes
- Find power using loop
- Calculate x^n
- Print Fibonacci series
- Find Nth Fibonacci number
- Check Armstrong number
- Check perfect number
- Check strong number
- Check prime number
- Print prime numbers
- Count prime numbers
- Find prime factors
- Find GCD
- Find LCM
- Find GCD and LCM together
- Check perfect square
- Check perfect cube
- Find all divisors
- Count divisors
- Sum of divisors
- Check abundant number
- Check deficient number
- Generate multiplication table dynamically