Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Declare a boolean variable called isFemale and assign an appropriate value corresponding to your gender.
- using System;
- namespace _06_MyGender
- {
- class MyGender
- {
- static void Main()
- {
- bool isFemale = false;
- switch (isFemale)
- {
- case true:
- Console.WriteLine("Nice to meet you milady !");
- break;
- case false:
- Console.WriteLine("Good evening milord !");
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment