Anonim_999

Untitled

Nov 29th, 2020 (edited)
422
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp5
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.Write("Введите кол-во старушек: ");
  14.             int peopleCount = Convert.ToInt32(Console.ReadLine());
  15.             int serviceTime = 10;
  16.             int waitingHour = (peopleCount * serviceTime) / 60;
  17.             int waitingMinute = (peopleCount * serviceTime) % 60;
  18.             Console.WriteLine($"Вы должны отстоять в очереди {waitingHour} час(а) и {waitingMinute} минут(у)(ы)");
  19.             Console.ReadKey();
  20.         }
  21.     }
  22. }
RAW Paste Data