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 ConsoleApp5
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите кол-во старушек: ");
- int peopleCount = Convert.ToInt32(Console.ReadLine());
- int serviceTime = 10;
- int waitingHour = (peopleCount * serviceTime) / 60;
- int waitingMinute = (peopleCount * serviceTime) % 60;
- Console.WriteLine($"Вы должны отстоять в очереди {waitingHour} час(а) и {waitingMinute} минут(у)(ы)");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement