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 ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int people;
- int time_minutes;
- int time_hour;
- int time_minutes_without_hour;
- Console.WriteLine("Вы пришли в больницу. Время приёма одного человека 10 минут. Для расчёта времени ожидания введите кол-во человек в очереди:");
- people = Convert.ToInt32(Console.ReadLine());
- time_minutes = people * 10;
- time_hour = time_minutes / 60;
- time_minutes_without_hour = time_minutes % 60;
- Console.WriteLine($"Время в ожидании своей очереди {time_minutes} минут или {time_hour} часов {time_minutes_without_hour} минут.");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment