In this, we are going to see do-while loop, the program is based on do-while loop which prints, infinite do-while loop.
The code given below can be used for TURBO C++ Compiler:-
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
bool condition = true;
do
{
cout<<"Help For Coders !";
}
while(condition);
getch();
}
The code given below can be used for g++/gcc Compiler:-
#include<iostream>
using namespace std;
int main()
{
bool condition = true;
do
{
cout<<"Help For Coders !";
}
while(condition);
return 0;
}
#ENJOY CODING
Â
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP