C Program to Print 1 to 100 without using Loop

In this tutorial you will learn about the C Program to Print 1 to 100 without using Loop and its application with practical example.

C Program to Print 1 to 100 without using Loop

In this tutorial, we will learn to create a C program that will Print 1 to 100 without using Loop in C programming.

Prerequisites

Before starting with this tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C programming.
  • Conditional Statements in c programming.

Algorithm:-

As we all know, the series printing works are done using the loops, but today we will print a series from 1 to 100 without using Loop. In this program, we will first define the variables for the program. Then we will pass that variable to a user-defined function to print the series.

With C programming, we can make many arithmetic series with just a little code.

With the help of this program, we can Print 1 to 100 without using Loop.

Program:-

 

Output:-

In the above program, we have first initialized the required variable.

  • val = it will hold the integer value for the program.
  • num = it will hold the integer value of the number.

Sending the data to the user-defined function for the generation of series.

Program code to print the list up to the given number 100.

In this tutorial we have learn about the C Program to Print 1 to 100 without using Loop and its application with practical example. I hope you will like this tutorial.