Advertisement
DaniPasteBin

Untitled

May 28th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _05.BooleanVariable
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.            
  10.  
  11.             string input = Console.ReadLine();
  12.  
  13.             bool boolean = Convert.ToBoolean(input);
  14.  
  15.             if (boolean == true)
  16.             {
  17.                 Console.WriteLine("Yes");
  18.             }
  19.             else
  20.             {
  21.                 Console.WriteLine("No");
  22.             }
  23.          
  24.            
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement