Infinite While Loops

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.

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


Share on Google Plus

About Asad

Asad Niazi is Software Engineer , Programmer, Web Developer and a young mentor of BloggersTown and PProgramming. Asad Love to writes about Technology, Programming, Blogging and make money online.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment