C++ – Count to 10

Just checking out C++



// C++_count.cpp : counts to 10
//

#include

using namespace std;


int main()
{
int i = 0;

while (i <= 10) {
cout << i << endl;
++i;
}
return 0;
}




Leave a Reply

Your email address will not be published. Required fields are marked *