14/02/2015

For Loop In C++

Loops are used to repeat the same pattern as per user requirements . In for loop we mention the number of repeated cycles at the time of loop starting.

Source Code

#include<iostream>
using namespace std;
int main ()
{
 for ( int i =0; i<5; i++ )
 {
  cout<<"\n  LEP Provides tutorial Free of cost :) ";
 }
}

Output of the Program

FOR LOOP IN C++

No comments:

Post a Comment