Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace HW
- {
- class Program
- {
- static void Main(string[] args)
- {
- bool IsDoorOpen = false;
- int userInput = Convert.ToInt32(Console.ReadLine());
- if(userInput >18 || userInput == 18)
- {
- IsDoorOpen = true;
- Console.WriteLine("GO!");
- }
- else
- {
- Console.WriteLine("Nope!");
- }
- Console.Read();
- }
- }
- }
Add Comment
Please, Sign In to add comment