Skip to content

Instantly share code, notes, and snippets.

@Hellhackee
Last active November 19, 2020 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hellhackee/5ba1f13459fc55704e1e95b783d45c9f to your computer and use it in GitHub Desktop.
Save Hellhackee/5ba1f13459fc55704e1e95b783d45c9f to your computer and use it in GitHub Desktop.
CS Light Lesson 5.1 (medical)
int peopleCount;
int timeForOnePerson = 10;
int waitingTime;
Console.WriteLine("Вы пришли в поликлинику.");
Console.Write("Сколько перед вами человек: ");
peopleCount = Convert.ToInt32(Console.ReadLine());
waitingTime = peopleCount * timeForOnePerson;
int hours = waitingTime / 60;
int minutes = waitingTime % 60;
Console.WriteLine($"Вы должны отстоять в очереди {hours} часа и {minutes} минут");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment