Created
November 1, 2025 12:21
-
-
Save forp7/c0cc505d2c648cea3c41f739ca363737 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace ConsoleApp3 | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("Введите количество людей в очереди:"); | |
| int peopleInQueue = Convert.ToInt32(Console.ReadLine()); | |
| int receptionTimeOfPerson = 10; | |
| int hour = 60; | |
| int minutesInLine = peopleInQueue * receptionTimeOfPerson; | |
| int hoursInQueue = minutesInLine / hour; | |
| int remainingMinutes = minutesInLine % hour; | |
| Console.WriteLine($"Вы простоите в очереди {hoursInQueue} часов и {remainingMinutes} минут."); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment