Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int minutesInHour = 60;
- int durationOfReceptionInMinutes = 10;
- Console.Write("Сколько старушек в очереди? ");
- int numberOfGrannys = Convert.ToInt32(Console.ReadLine());
- int queueLengthInMinutes = numberOfGrannys * durationOfReceptionInMinutes;
- int hoursInQueue = queueLengthInMinutes / minutesInHour;
- int minutesInQueue = queueLengthInMinutes % minutesInHour;
- Console.WriteLine($"Вам придется отстоять в очереди {hoursInQueue} часов {minutesInQueue} минут.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement