Skip to content

Instantly share code, notes, and snippets.

@QRemark
Created January 9, 2024 09:56
Show Gist options
  • Save QRemark/8464b1c431c0de4b18b3e6859fb880d0 to your computer and use it in GitHub Desktop.
Save QRemark/8464b1c431c0de4b18b3e6859fb880d0 to your computer and use it in GitHub Desktop.
Поликлиника
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
namespace homeWork1
{
internal class Program
{
static void Main(string[] args)
{
int minuteForHuman = 10;
int minuteInHour = 60;
int human;
int hourWait;
int minuteWait;
Console.Write($"Добрый день! Скажите пожалуйста, сколько человек вы видете в очереди? Введите " +
$"число: ");
human = Convert.ToInt32( Console.ReadLine() );
hourWait = human * minuteForHuman / minuteInHour;
minuteWait = human * minuteForHuman % minuteInHour;
Console.Write($"По итогам расчетов Вы должны отстоять в очереди {hourWait} час(а,ов) " +
$"и {minuteWait} минут в очереди. Приятного ожидания!");
Console.ReadKey();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment