Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Clight_07
- {
- class Program
- {
- static void Main()
- {
- int numberPeople;
- int totalTime;
- int totalHours;
- int totalMinutes;
- int timeAppointment = 10;
- int oneHourInMinutes = 60;
- Console.Write("Введите количество старушек: ");
- numberPeople = Convert.ToInt32(Console.ReadLine());
- totalTime = numberPeople * timeAppointment;
- totalHours = totalTime / oneHourInMinutes;
- totalMinutes = totalTime % oneHourInMinutes;
- Console.WriteLine($"Вы должны отстоять в очереди {totalHours} часа и {totalMinutes} минут");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement