Mega Code Archive
Categories
/
Visual C++ .NET
/
Statement
Create a while Loop
#include "stdafx.h" #using
using namespace System; int main(void) { int x; x=0; while((++x)<10) { Console::WriteLine(x); } return 0; }