While Loop in C++

While loop checks 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 problems.

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++

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