Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ana19997/342c0e64b7c5437f5171c00eedce1e06 to your computer and use it in GitHub Desktop.
Save Ana19997/342c0e64b7c5437f5171c00eedce1e06 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 onePeople = 10;
float waitingTime;
float hour;
float min;
Console.WriteLine("Введите количество человек в очереди:");
people = Convert.ToSingle(Console.ReadLine());
waitingTime = people * onePeople;
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