Advertisement
pol9na

Untitled

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