SHOW:
|
|
- or go back to the newest paste.
1 | using System; | |
2 | ||
3 | namespace CsLightHomeworks | |
4 | { | |
5 | class Program | |
6 | { | |
7 | static void Main(string[] args) | |
8 | { | |
9 | - | int imageAmount = 52; |
9 | + | int appoinmentTime = 10; |
10 | - | int imagePerZone = 3; |
10 | + | |
11 | Console.Write("Введите кол-во старушек: "); | |
12 | - | int fullFillLines = imageAmount / imagePerZone; |
12 | + | int peopleAmount = Convert.ToInt32(Console.ReadLine()); |
13 | - | int partFillLines = imageAmount % imagePerZone; |
13 | + | |
14 | int hoursToWait = (peopleAmount * appoinmentTime) / 60; | |
15 | - | Console.WriteLine($"Полность заполненных рядов будет {fullFillLines}"); |
15 | + | int minutesToWait = (peopleAmount * appoinmentTime) % 60; |
16 | - | Console.WriteLine($"Картинок сверх меры {partFillLines}"); |
16 | + | |
17 | Console.WriteLine($"Вы должны отстоять в очереди {hoursToWait} часа и {minutesToWait} минут."); | |
18 | } | |
19 | } | |
20 | } |