Write a program for demonstration of do-while loop in C

//this is a program for demonstration of do-while loop
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;

printf("\n\nPrinting Hello Ten times");

do{

printf(" \nHello ");
i++;

}while(i<10);

getch();

}

Previous
Next Post »