Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05._Boolean_Variable
- {
- class Program
- {
- static void Main(string[] args)
- {
- string varInput = Console.ReadLine();
- bool toBoolean = Convert.ToBoolean(varInput);
- if (toBoolean)
- {
- Console.WriteLine($"Yes");
- }
- else
- {
- Console.WriteLine("No");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment