Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class BeerTime
- {
- static void Main()
- {
- Console.WriteLine("Please enter the time, when u available for beer... :)");
- Console.Write("I'm available in ");
- DateTime userAvailable = DateTime.Parse(Console.ReadLine());
- DateTime beerTimeStart = DateTime.Parse("1:00 PM");
- DateTime beerTimeEnd = DateTime.Parse("3:00 AM");
- if ((userAvailable >= beerTimeStart) && (userAvailable <= beerTimeEnd))
- {
- Console.WriteLine("Its Beer Time... Cheers");
- }
- else
- {
- Console.WriteLine("Its not beer time yet, try later...");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment