Advertisement
Blagovest

BooleanVariable

Jul 24th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace BooleanVariable
  8. {
  9. class BooleanVariable
  10. {
  11. static void Main(string[] args)
  12. {
  13. string Variable = Console.ReadLine();
  14.  
  15.  
  16. bool Bolean = Convert.ToBoolean(Variable);
  17. if (Bolean == true)
  18. {
  19. Console.WriteLine("Yes");
  20. }
  21. else if (Bolean == false)
  22. {
  23. Console.WriteLine("No");
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement