Advertisement
vovanhik_24

#7

Aug 18th, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1.         static void Main(string[] args)
  2.         {
  3.             Console.Write("Количество людей в очереди? ");
  4.             int peopleInQueueCount = Convert.ToInt32(Console.ReadLine());
  5.             int timePerPerson = 10;
  6.  
  7.             int waitingTimeHours = peopleInQueueCount * timePerPerson / 60;
  8.             int waitingTimeMinuts = peopleInQueueCount * timePerPerson % 60;
  9.  
  10.             Console.WriteLine($"Количество людей в очереди: {peopleInQueueCount}");
  11.             Console.WriteLine($"Время ожидания: {waitingTimeHours}:{waitingTimeMinuts}");
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement