kwest87

Untitled

Mar 18th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. [StartCode]
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ConsoleApp2
  9. {
  10.     internal class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             int patient;
  15.             int patientTime = 10;
  16.             int timeTurn;
  17.  
  18.             Console.Write("Сколько людей стоит в очереди :");
  19.             patient = Convert.ToInt32(Console.ReadLine());
  20.             timeTurn = patient  * patientTime;
  21.  
  22.             int minutesInHour = 60;
  23.             int hourTurn = timeTurn / minutesInHour;
  24.             int minuteTurn = timeTurn % minutesInHour;
  25.             Console.WriteLine("Время ожидания в очереди " + hourTurn + " часов " + minuteTurn + " минут.");
  26.         }
  27.     }
  28. }
  29. [EndCode]
Advertisement
Add Comment
Please, Sign In to add comment