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