ProgramsLogic building

Phase 2 - Level 3: Mathematical & Logical Patterns

Master mathematical series, sequences, and logical patterns using loops.

13 programs · open one, then the next

Start with Print Squares from 1 to N
  1. 01Print Squares from 1 to NIntermediatePrint square of each number from 1 to n.Open example →
  2. 02Print Cubes from 1 to NIntermediatePrint cube of each number from 1 to n.Open example →
  3. 03Numbers Divisible by 7IntermediatePrint numbers between a and b divisible by 7.Open example →
  4. 04Find HCF (GCD) Using LoopsIntermediateFind HCF/GCD of two numbers using loops.Open example →
  5. 05Find LCM Using LoopsIntermediateFind LCM of two numbers using loops.Open example →
  6. 06Print All FactorsIntermediatePrint all factors of a number.Open example →
  7. 07Sum of All FactorsIntermediateCalculate sum of all factors of a number.Open example →
  8. 08Strong Number CheckIntermediateCheck if a number is strong number.Open example →
  9. 09First N Terms of APIntermediatePrint first n terms of arithmetic progression (a, d).Open example →
  10. 10First N Terms of GPIntermediatePrint first n terms of geometric progression (a, r).Open example →
  11. 11Print Harmonic SeriesIntermediatePrint harmonic series: 1 + 1/2 + 1/3 + ... + 1/n.Open example →
  12. 12Sum of Harmonic SeriesIntermediateCalculate sum of harmonic series.Open example →
  13. 13Alternating Series SumIntermediateCalculate 1 - 1/2 + 1/3 - 1/4 + ... ± 1/n.Open example →