JobsJob TrackerJob alerts

Kongsberg · 2 questions

All 2Coding 2
  • Print 1 to 100 without using a loopCoding
  • Print pyramid patternCoding
← Kongsberg questions
  1. Interview questions
  2. Kongsberg
  3. Print 1 to 100 without using a loop
Coding

Print 1 to 100 without using a loop

Filed under Kongsberg

The question

Write a code snippet to print numbers from 1 to 100 without using any loops, typically using recursion.

No write-up yet. Related questions below have one.

Print pyramid pattern →

Collected from public candidate posts and coding forums. Updated Nov 2026.