-KEN-
11-11-2001, 09:58 AM
Ok, has anyone ever tried for loops in C#? test out this code:
using System;
class MyClass
{
public static void Main(String[] args)
{
int x;
for(x=0;x<10;x++)
System.Write(x);
}
}
if you notice, the output is 123456789
not exactly like C/C++/Java...hmmm, it'll be hard to remember to always make the number one higher than you want it to go to.
using System;
class MyClass
{
public static void Main(String[] args)
{
int x;
for(x=0;x<10;x++)
System.Write(x);
}
}
if you notice, the output is 123456789
not exactly like C/C++/Java...hmmm, it'll be hard to remember to always make the number one higher than you want it to go to.