C Program to Print 1 to 10 Without Using Loop

In this tutorial you will learn about the C Program to Print 1 to 10 Without Using Loop and its application with practical example.

C Program to Print 1 to 10 Without Using Loop

In this tutorial, we will learn to create a C program that will Print 1 to 10 Without Using Loop in C programming.

Table Of Contents

Prerequisites

Before starting with this tutorial we assume that you are 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.

As we all know the String is a collection of character data types. In strings, only one variable is declared which can store multiple values.In c programming language we can do all the work for multiple printing with the help of loops but in today’s tutorial we will complete the program without using the loops.

There are two ways to complete this program.

With the help of this program, we can Print 1 to 10 Without Using Loop.

Algorithm 1:-

Algorithm 2:-

Program 1 to Print 1 to 10 Without Using Loop:-

Program 2 to Print 1 to 10 Without Using Loop:-

Output:-

The above program we have printed each line manually by writing the codes.

 

Output 2:-

The above program we have first initialized the set of variables for the program.

  • i = it will hold the integer value.

User defined Function for printing.

 

Printing the numbers from the function.

Calling the user defined function.

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