← Deutsche Bank questions
CodingReported in a candidate post, Oct 2024

Print numbers 1 to n without using any loop

Filed under Deutsche Bank

Print the numbers from 1 to n without using any loop construct (for, while, do-while). Recursion is the usual approach.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Deutsche Bank questions

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