Showing posts with label Infinite While Loop in Cplusplus. Show all posts
Showing posts with label Infinite While Loop in Cplusplus. Show all posts

Saturday, 23 August 2014

Infinite While Loops

Structure of the Problem Requirements 

In this problem we will learn how to make a loop infinite time running. This thing happen in loop when you make a strange change in loop and the conditional point can't touch the end point and going to iteration again and again . Here is the simple and small code of this problem which help you in better understanding .

Source Code  

#include<iostream>
using namespace std;
int main ()
{
int i=0;
while (i<5)
{
cout<<" \n LEP Developers Provide Best Online Help ";
}
}

Output of the Program

Infinite Loop
Infinite Loop