Program to Print 1 to 100 Numbers without using Loop

Write a program to print 1 to 100 numbers without using loop. Using loop, (for and while loop) we can easily solve this problem. Think for a moment how do you solve this problem without using a loop. We can solve this problem using recursion.

We’ll cover following programming code examples in this tutorial.

  • C program to print 1 to 100 numbers without using loop.
  • C++ program to print 1 to 100 numbers without using loop.

Recursion vs iteration – Difference between recursion and iteration

C Program to Print 1 to 100 Numbers without using Loop

Let’s write a C code to print 1 to 100 numbers using recursion without using loop.

C++ Program to Print 1 to 100 Numbers without using Loop

We have written a c code to print numbers from 1 to 100 numbers. In this example, we are going to write a c++ code to print numbers from 1 to 100 using recursion.

C programming questions for practice

Java programs

Tagged , , . Bookmark the permalink.

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.