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