home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int i; clrscr(); printf("\n This is a do-while loop statement program."); i=1; do{ printf("\n %d HELLO WORLD",i); i++; /* you can write like this i= i + 1; */ } while(i<10); getch(); }
Program Output
This is a do-while loop statement program. 1 HELLO WORLD 2 HELLO WORLD 3 HELLO WORLD 4 HELLO WORLD 5 HELLO WORLD 6 HELLO WORLD 7 HELLO WORLD 8 HELLO WORLD 9 HELLO WORLD