Skip to content

Instantly share code, notes, and snippets.

@ghostofgamer
Last active May 8, 2022 18:43
Show Gist options
  • Select an option

  • Save ghostofgamer/aeee81a0b6a7047b319c3a5d55e3cde5 to your computer and use it in GitHub Desktop.

Select an option

Save ghostofgamer/aeee81a0b6a7047b319c3a5d55e3cde5 to your computer and use it in GitHub Desktop.
int amountPatients;
int timeReception = 10;
int hoursExpectation;
int minutesExpectation;
Console.Write("Пациентов в очереди:");
amountPatients = Convert.ToInt32(Console.ReadLine());
hoursExpectation = amountPatients * timeReception / 60;
minutesExpectation = amountPatients * timeReception % 60;
Console.WriteLine("Вы должны отстоять в очереди " + hoursExpectation + " часа "+ minutesExpectation + " минут");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment