Download presentation
Presentation is loading. Please wait.
Published byMartina O’Brien’ Modified over 6 years ago
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: ^ * / + -
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.