Visual C++ .NET/Statement/while
Create a while Loop
<source lang="csharp">
- include "stdafx.h"
- using <mscorlib.dll>
using namespace System; int main(void) {
int x; x=0; while((++x)<10) { Console::WriteLine(x); } return 0;
}
</source>
<source lang="csharp">
using namespace System; int main(void) {
int x; x=0; while((++x)<10) { Console::WriteLine(x); } return 0;
}
</source>