Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSLight
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int minutesForMan = 10;
- int minutesInHour = 60;
- Console.WriteLine("Сколько людей в очереди?");
- int peopleInQueu = Convert.ToInt32(Console.ReadLine());
- int minutesToWait = minutesForMan * peopleInQueu;
- int hoursToWait = minutesToWait / minutesInHour;
- int extraMinutes = minutesToWait % minutesInHour;
- Console.WriteLine($"Время приме одного человека составляет {minutesForMan} минут. В очереди {peopleInQueu} человек. Вам нужно подождать " +
- $"{(hoursToWait)} часов {extraMinutes} минут ");
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement