using System; namespace Demo01 { class Program static void Main(string[] args) Console.WriteLine("Hello world"); }
using System; namespace Demo01 { class Program static void Main(string[] args) string name = "world"; Console.WriteLine("Hello " + name); }
String Is a type Contains text
using System; namespace Demo01 { class Program static void Main(string[] args) string name = "world"; Console.WriteLine("Hello " + name); name = "Loek"; }
using System; namespace Demo01 { class Program static void Main(string[] args) string name = "world"; Console.WriteLine("Hello " + name); name = "Loek"; name = "Leo"; }
Integer Is a type Contains numbers
using System; namespace Demo01 { class Program static void Main(string[] args) string name = "world"; Console.WriteLine("Hello " + name); name = "Loek"; int year = 2017; Console.WriteLine("Hello " + name + " this year is " + year); }
using System; namespace Demo01 { class Program static void Main(string[] args) string name = "world"; Console.WriteLine("Hello " + name); name = "Loek"; int year = 2017; Console.WriteLine("Hello " + name + " this year is " + year); year = year + 1; }
Loops Made to repeat things
for (int i = 0; i < 10; i++) { Console.WriteLine("Hello " + name + " this year is " + year + i); }
Order is important. Just like in Math: for (int i = 0; i < 10; i++) { Console.WriteLine("Hello " + name + " this year is " + (year + i)); } Order is important. Just like in Math: ^ * / + -