Print Numbers from 1 to 10 (Do–While Loop)

 #include<stdio.h>

int main()

{

    int i=1;

    do

    {

        printf("%d ",i);

        i++;

    }while(i<=10);

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices