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