Sunday, February 17, 2013

While Loop in C++

#include <iostream>
using namespace std;
int main()
{
    int i=0;
    while(i<5){
        cout<<"I love C++"<<endl;
        i++;
    }
    return 0;
}

No comments:

Post a Comment