Do while loop condition fails: one outputĀ
when we use do while loop it gives us an advantage that even the condition fails it gives at least one initial output
when we use do while loop it gives us an advantage that even the condition fails it gives at least one initial output
#include<iostream.h> #include<conio.h> main() { clrscr(); int a=1; do { cout << a << endl; a=a+1; } while (a <= 10); getch(); }