Created
January 9, 2024 09:56
-
-
Save QRemark/8464b1c431c0de4b18b3e6859fb880d0 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.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