For Loop
Hi Guys,
I am starting to use c# and am going through the different types of loops. I want to run a for loop which displays some numbers. I use the following code: -
using System;
class MainClass
{
public static void Main(string[] args)
{
//Console.WriteLine("Hello World!");
for (int i = 1;i < 100;i++}
{
Console.WriteLine("The Number is: " + i);
}
}
}
and I get the following errors: -
Invalid Token '{' in class, struct or interfae member declaration(CS1519)
I dont understand what I have done wrong??
Thanks
Adz
Adz - Portsmouth Massive
__________________
Adz - Learning The J2EE Ways.
|