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