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