A simple while loop in C++

 #include <iostream>


using namespace std;


int main()

{

int i;

while( i<6)

{

cout<<i;

i++;

}

return 0;

}

Comments