Last active
January 31, 2023 08:58
-
-
Save ShamilAitov/ab1024464de432ba71571376457936ca 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.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