Presentation is loading. Please wait.

Presentation is loading. Please wait.

Welcome back to Software Development!

Similar presentations


Presentation on theme: "Welcome back to Software Development!"— Presentation transcript:

1 Welcome back to Software Development!

2 The C# Programming Language
Branching Looping Numeric Data Types if / else do / while bool switch / case / default while int / long break for float / double return foreach char / string try / catch / throw continue

3 The switch branching statement

4 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

5 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

6 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

7 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

8 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

9 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

10 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

11 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

12 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

13 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

14 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: }

15 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: } switch ( userName) { case “Korben Dallas multipass”: Console.WriteLine(“LeeLoo loves you”); break; case “Zorg”: Console.WriteLine(“LeeLoo will destroy you”); default: Console.WriteLine(“Be careful!”); }

16 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: } switch ( userName) { case “Korben Dallas multipass”: Console.WriteLine(“LeeLoo loves you”); break; case “Zorg”: Console.WriteLine(“LeeLoo will destroy you”); default: Console.WriteLine(“Be careful!”); }

17 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: } switch ( userName) { case “Korben Dallas multipass”: Console.WriteLine(“LeeLoo loves you”); break; case “Zorg”: Console.WriteLine(“LeeLoo will destroy you”); default: Console.WriteLine(“Be careful!”); }

18 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: } switch ( userName) { case “Korben Dallas multipass”: Console.WriteLine(“LeeLoo loves you”); break; case “Zorg”: Console.WriteLine(“LeeLoo will destroy you”); default: Console.WriteLine(“Be careful!”); }

19 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: } switch ( userName) { case “Korben Dallas multipass”: Console.WriteLine(“LeeLoo loves you”); break; case “Zorg”: Console.WriteLine(“LeeLoo will destroy you”); default: Console.WriteLine(“Be careful!”); }

20 The switch branching statement
switch ( variable ) { case <option 1>: <code> break; case <option 2>: default: } switch ( userName) { case “tom”: Console.WriteLine(“LeeLoo loves you”); break; case “Zorg”: Console.WriteLine(“LeeLoo will destroy you”); default: Console.WriteLine(“Be careful!”); }

21 Clear and Unclear Windows


Download ppt "Welcome back to Software Development!"

Similar presentations


Ads by Google