Advertisement
AnitaN

02.PrimitiveDataTypesVariables/06.BooleanVariable

Mar 9th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. //Problem 6.Boolean Variable
  2. //Declare a Boolean variable called isFemale and assign an appropriate value corresponding to your gender. Print it on the console.
  3.  
  4. using System;
  5.  
  6. class BooleanVariable
  7. {
  8.     static void Main()
  9.     {
  10.         bool isFamale = true;
  11.         Console.WriteLine("I am Female. It is {0}",isFamale);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement