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 Task5
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int timeReceipt = 10;
- int minuteInHours = 60;
- int peopleCount;
- int totalTimeMinutes;
- int hoursReceipt;
- Console.WriteLine("Сколько старушек в очереди на приём вы видите?: ");
- peopleCount = Convert.ToInt32(Console.ReadLine());
- totalTimeMinutes = timeReceipt * peopleCount;
- hoursReceipt = totalTimeMinutes / minuteInHours;
- timeReceipt = totalTimeMinutes % minuteInHours;
- Console.WriteLine("Вы должны отстоять в очереди " + hoursReceipt + " часа и " + timeReceipt + " минут.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement