Last active
November 19, 2020 23:49
-
-
Save Hellhackee/5ba1f13459fc55704e1e95b783d45c9f to your computer and use it in GitHub Desktop.
CS Light Lesson 5.1 (medical)
This file contains 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 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