Solution:NIIT/GNIIT Sonugiri0032@gmail.com

Wednesday, January 06, 2016

Infinite For Loop

Infinite For Loop


Structure of the Problem  Requirements 

The for loop become infinite when all the condition in the loop are true and there is no false condition . There are many ways to make a loop infinite but the most simple is to leave the conditional area empty . The Compiler assume that all these conditions are true and the loop become infinite . To stop an infinite loop just press Ctrl+C .

Source Code

#include <iostream>
using namespace std;
int main ()
{
   for( ; ; )
   {
      cout<<" LEP C++ Tutorials For Beginners \n";
   }
}

Output of the Program

Infinite For Loop
Share:

0 comments:

GNIITSOLUTION GNIIT SOLUTION. Powered by Blogger.

Translate

Blog Archive

Unordered List