Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal class Program
- {
- static void Main(string[] args)
- {
- int numberOfOldLadies;
- int fixedMinutesOfWaiting = 10;
- int minutesInHour = 60;
- int hoursOfWaiting;
- int minutesOfWaiting;
- Console.Write("Введите количество старушек в очереди: ");
- numberOfOldLadies = Convert.ToInt32(Console.ReadLine());
- hoursOfWaiting = numberOfOldLadies * fixedMinutesOfWaiting / minutesInHour;
- minutesOfWaiting = numberOfOldLadies * fixedMinutesOfWaiting % minutesInHour;
- Console.WriteLine($"Время ожидания составит {hoursOfWaiting} часов и {minutesOfWaiting} минут");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement