C#
While loop in C#
//While loop in C#
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int x = 1;
while (x != 6)
{
Console.Write(x + " ");
x++;
}
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment