Simplest while : While « Language Basics « C# / C Sharp
- C# / C Sharp
- Language Basics
- While
Simplest while
/*
* C# Programmers Pocket Consultant
* Author: Gregory S. MacBeth
* Email: [email protected]
* Create Date: June 27, 2003
* Last Modified Date:
*/
using System;
namespace Client.Chapter_4___Program_Control
{
public class Whiles
{
static void Main(string[] args)
{
int a = 0;
while(a > 10)
{
a++;
Console.WriteLine(a);
}
}
}
}
Related examples in the same category