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.
  • Java program to print 1 to 100 numbers without using loop.

Recursion vs iteration – Difference between recursion and iteration

Subscribe Our Tutorials

Get Latest Updates on Facebook

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.

 

Java Program to Print 1 to 100 Numbers without using Loop

In the final example, we are going to write a java code to print 1 to 100 numbers recursively.

C programming questions for practice

Java programs

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.
Tagged , , . Bookmark the permalink.