Last active
May 8, 2022 18:43
-
-
Save ghostofgamer/aeee81a0b6a7047b319c3a5d55e3cde5 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
int amountPatients; | |
int timeReception = 10; | |
int hoursExpectation; | |
int minutesExpectation; | |
int spentTime; | |
int minutInHour = 60; | |
Console.Write("Пациентов в очереди:"); | |
amountPatients = Convert.ToInt32(Console.ReadLine()); | |
spentTime = amountPatients * timeReception; | |
hoursExpectation = spentTime / minutInHour; | |
minutesExpectation = spentTime % minutInHour; | |
Console.WriteLine("Вы должны отстоять в очереди " + hoursExpectation + " часа "+ minutesExpectation + " минут"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment