Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BooleanVariable
- {
- static void Main()
- {
- byte IsMale = 1;
- bool isFemale = (IsMale == 1);
- if (isFemale)
- {
- Console.WriteLine("You are male! // IsMale = {0}", isFemale);
- }
- else
- {
- Console.WriteLine("You are female! // IsMale = {0}", isFemale);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement