Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CSLight
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int patients;
- int patientWaitingTime = 10;
- int timeInHour = 60;
- Console.Write("Сколько пациентов в очереди: ");
- patients = Convert.ToInt32(Console.ReadLine());
- int waitingTime = patients * patientWaitingTime;
- int waitingTimeInHours = waitingTime / timeInHour;
- int waitingTimeInMinutes = waitingTime % timeInHour;
- Console.WriteLine($"Вы должны отстоять в очереди {waitingTimeInHours} ч и {waitingTimeInMinutes} мин.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement