Skip to content

Instantly share code, notes, and snippets.

@ShamilAitov
Last active January 31, 2023 08:58
Show Gist options
  • Save ShamilAitov/ab1024464de432ba71571376457936ca to your computer and use it in GitHub Desktop.
Save ShamilAitov/ab1024464de432ba71571376457936ca 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 УрокApp2
{
internal class Program
{
static void Main(string[] args)
{
int people;
int receptionTime = 10;
int hour = 60;
int numberOfHours;
int numberOfMinutes;
Console.Write("Привет, сколько старушек в очереди: ");
people = Convert.ToInt32(Console.ReadLine());
numberOfHours = people * receptionTime / hour;
numberOfMinutes = people * receptionTime % hour;
Console.WriteLine($"Вы должны простоять {numberOfHours} часа, {numberOfMinutes} минут ");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment