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