Skip to content

Instantly share code, notes, and snippets.

@Mazday21
Last active April 16, 2022 12:06
Show Gist options
  • Save Mazday21/c26650aefeea3a2a37a164b855f2bc04 to your computer and use it in GitHub Desktop.
Save Mazday21/c26650aefeea3a2a37a164b855f2bc04 to your computer and use it in GitHub Desktop.
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