Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace PeopleInQueue
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- {
- Console.OutputEncoding = Encoding.UTF8;
- int peopleInQueue;
- int appointmentLength = 10;
- int hourWait;
- int minutes = 60;
- int minutesWait;
- Console.Write("Введите количество людей в очереди: ");
- peopleInQueue = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine(" Учитывайте, что фиксированное время приема одного человека всегда равно 10 минутам");
- hourWait = peopleInQueue * appointmentLength / minutes;
- minutesWait = peopleInQueue * appointmentLength % minutes;
- Console.WriteLine("Вам ждать своей очереди {0} часов, и {1} минут.", hourWait, minutesWait);
- Console.ReadKey(); //Ожидается нажание какой либо клавиши
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment