Nested do while of Loops in C Programming Language

C Programming Language Loop control in C Language (Article) Loop control in C Language (Program)

23336

Program:

#include<stdio.h>
void main()
{
int i = 1;
int j = 1;

do{
   do{
    printf("Welcome ");
    j++;
   }while(j<=3); 
    printf("\n");
    j = 1;
i++; 
}while(i<=3);
 
 
}

Output:

Welcome Welcome Welcome
Welcome Welcome Welcome
Welcome Welcome Welcome
Press any key to continue . . .

Explanation:

None

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.