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

Saturday, 14 February 2015

While Loop in C++

Structure of the Problem Requirements  

While loop check the condition first and then perform its iteration . But overall loops has the same function the only difference is when we deal with too much complex scientific problem .

Source Code

#include<iostream>
using namespace std;
int main ()
{
int i=0;
while (i<5)
{
cout<<i<<" .LEP is Best Platform for begineers " <<endl;
i++;
}
}

Output of the Program

While Loop in C++