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