Presentation is loading. Please wait.

Presentation is loading. Please wait.

using System; namespace Demo01 { class Program

Similar presentations


Presentation on theme: "using System; namespace Demo01 { class Program"— Presentation transcript:

1 using System; namespace Demo01 { class Program static void Main(string[] args) Console.WriteLine("Hello world"); }

2 using System; namespace Demo01 { class Program static void Main(string[] args) string name = "world"; Console.WriteLine("Hello " + name); }

3 String Is a type Contains text

4 using System; namespace Demo01 { class Program static void Main(string[] args) string name = "world"; Console.WriteLine("Hello " + name); name = "Loek"; }

5 using System; namespace Demo01 { class Program static void Main(string[] args) string name = "world"; Console.WriteLine("Hello " + name); name = "Loek"; name = "Leo"; }

6 Integer Is a type Contains numbers

7 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); }

8 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; }

9 Loops Made to repeat things

10 for (int i = 0; i < 10; i++)
{ Console.WriteLine("Hello " + name + " this year is " + year + i); }

11 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: ^ * / + -


Download ppt "using System; namespace Demo01 { class Program"

Similar presentations


Ads by Google