C Language

May 29, 2023

How to use do while loop in c language

program to use do while loop in c language


#include<stdio.h>
int main()
{
    int i=1;
    do
    {
        printf("%d\t",i);
        i=i+1;
    }while (i<=10);
    printf("\n");
    return 0;
    
}

output


1       2       3       4       5       6       7       8       9       10

by : Ajaj Khan

Quick Summary:

इस program मैं do -while loop का उपयोग करके 1 से 10 तक की संख्या print हो रहा है