Last active
April 16, 2022 12:06
-
-
Save Mazday21/c26650aefeea3a2a37a164b855f2bc04 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; | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Введите количество людей в очереди"); | |
int queueLength = Convert.ToInt32(Console.ReadLine()); | |
int appointmentTime = 10; | |
int waitingTime = appointmentTime * queueLength; | |
int minutesInHour = 60; | |
int waitingHours = waitingTime / minutesInHour; | |
int waitingMinutes = waitingTime % minutesInHour; | |
Console.WriteLine($"Время ожидания в очереди = {waitingHours} часов {waitingMinutes} минут"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment