Advertisement
VodVas

Поликлиника

Aug 15th, 2023 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | Software | 0 0
  1.             Console.Write("Количество старушек в очереди: ");
  2.             int grannyQuantity = Convert.ToInt32(Console.ReadLine());
  3.  
  4.             int waitingTime = 10;
  5.             int quantityWaitingTimeInQueue = 6;
  6.  
  7.             int hoursWaitingInQueue = grannyQuantity / quantityWaitingTimeInQueue;
  8.             int minutesWaitingInQueue = (grannyQuantity % quantityWaitingTimeInQueue) * waitingTime;
  9.  
  10.             Console.WriteLine($"Вы простоите в очереди {hoursWaitingInQueue} часов и {minutesWaitingInQueue} минут");inutes} минут");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement