Skip to content

Instantly share code, notes, and snippets.

@Ana19997
Created May 8, 2021 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ana19997/3b81831f3be8cd536612de626d1ba13f to your computer and use it in GitHub Desktop.
Save Ana19997/3b81831f3be8cd536612de626d1ba13f 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;
namespace ОЧЕРЕДЬ
{
class Program
{
static void Main(string[] args)
{
float people;
float timePerPerson = 10;
float waitingTime;
float hour;
float min;
Console.WriteLine("Введите количество человек в очереди:");
people = Convert.ToSingle(Console.ReadLine());
waitingTime = people * timePerPerson;
hour = waitingTime / 60;
min = waitingTime % 60;
Console.WriteLine("Время ожидания: " + hour + " час " + min + " минут ");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment