Author Topic: So I'm learning C# :O  (Read 537 times)

Yay, learning a legit programming language.

Of the top of my head, the syntax is similar to TorqueScript, so it's a lot easier to learn.

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 0; i < 20; i++)
            {
                if (i == 10)
                    break;

                if (i % 2 == 0)
                    continue;

                Console.Write("{0} ", i);
            }
            Console.WriteLine("Press any key to continue.");
            Console.ReadLine();
        }
    }
}


Prints
1 3 5 7 9 Press any key to continue.
In CMD. Ofc, it must be compiled or put into Visual Basic or Visual C# to run, but w/e.

That's why I prefer Python. No compiling :D :cookieMonster:

been meaning to learn C# fully, XNA is nice
where are you learning?


Prints
1 3 5 7 9 Press any key to continue.
In CMD. Ofc, it must be compiled or put into Visual Basic or Visual C# to run, but w/e.
Sounds a bit useless D: