Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Runtime.ConstrainedExecution;
- internal class Program
- {
- static void Main(string[] args)
- {
- int receptionMinutes = 10;
- int minPerHour = 60;
- int queue;
- int waitTime;
- int hours;
- int minutes;
- Console.Write("Сколько человек в очереди: ");
- queue = Convert.ToInt32(Console.ReadLine());
- waitTime = receptionMinutes * queue;
- hours = waitTime / minPerHour;
- minutes = waitTime % minPerHour;
- Console.WriteLine($"Время ожидания: {hours} часов {minutes} минут.");
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement