Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CSLight1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Input number of people: ");
- int numberOfPeople = Convert.ToInt32(Console.ReadLine());
- int timeForHuman = 10;
- int waitingTime = numberOfPeople * timeForHuman;
- int hours = waitingTime / 60;
- int minutes = waitingTime % 60;
- Console.WriteLine($"Вы должны отстоять в очереди {hours} часа {minutes} минут");
- }
- }
- }
Add Comment
Please, Sign In to add comment