Created
May 8, 2021 05:40
-
-
Save Ana19997/342c0e64b7c5437f5171c00eedce1e06 to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ОЧЕРЕДЬ | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
float people; | |
float onePeople = 10; | |
float waitingTime; | |
float hour; | |
float min; | |
Console.WriteLine("Введите количество человек в очереди:"); | |
people = Convert.ToSingle(Console.ReadLine()); | |
waitingTime = people * onePeople; | |
hour = waitingTime / 60; | |
min = waitingTime % 60; | |
Console.WriteLine("Время ожидания: " + hour + " час " + min + " минут "); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment