Skip to content

Instantly share code, notes, and snippets.

@forp7
Created November 1, 2025 12:21
Show Gist options
  • Save forp7/c0cc505d2c648cea3c41f739ca363737 to your computer and use it in GitHub Desktop.
Save forp7/c0cc505d2c648cea3c41f739ca363737 to your computer and use it in GitHub Desktop.
using System;
namespace ConsoleApp3
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введите количество людей в очереди:");
int peopleInQueue = Convert.ToInt32(Console.ReadLine());
int receptionTimeOfPerson = 10;
int hour = 60;
int minutesInLine = peopleInQueue * receptionTimeOfPerson;
int hoursInQueue = minutesInLine / hour;
int remainingMinutes = minutesInLine % hour;
Console.WriteLine($"Вы простоите в очереди {hoursInQueue} часов и {remainingMinutes} минут.");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment