VelizarAvramov

Boolean Variable

Mar 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _05_Boolean_Variable
  4. {
  5.     class BoolVar
  6.     {
  7.         static void Main()
  8.         {
  9.             bool isFemale = false;
  10.             if (isFemale)
  11.             {
  12.                 Console.WriteLine("You are female (False)");
  13.             }
  14.             else
  15.             {
  16.                 Console.WriteLine("You are male (True)");
  17.                 //bool isFemale = true;
  18.                 //if (isFemale)
  19.                 //Console (You are female (True))
  20.                 //else
  21.                 //console (You are male (False))
  22.             }
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment