Visual C++ .NET/Statement/while

Материал из .Net Framework эксперт
Версия от 15:06, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Create a while Loop

<source lang="csharp">

  1. include "stdafx.h"
  2. using <mscorlib.dll>

using namespace System; int main(void) {

   int x;
   x=0;
   while((++x)<10)
   {
       Console::WriteLine(x);
   }
   return 0;

}

 </source>