Skip to content

Instantly share code, notes, and snippets.

@ghostofgamer
Last active May 8, 2022 18:43
Show Gist options
  • Save ghostofgamer/aeee81a0b6a7047b319c3a5d55e3cde5 to your computer and use it in GitHub Desktop.
Save ghostofgamer/aeee81a0b6a7047b319c3a5d55e3cde5 to your computer and use it in GitHub Desktop.
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