Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Learn1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int timeOrReceipt = 10;
- int people;
- int totalTime;
- int hour;
- int min;
- Console.Write("Введите количество человек в очереди: ");
- people = Convert.ToInt32(Console.ReadLine());
- totalTime = people * timeOrReceipt;
- hour = totalTime / 60;
- min = totalTime % 60;
- Console.WriteLine($"Вы должны отстоять в очереди {hour} часов {min} минут");
- }
- }
- }
Add Comment
Please, Sign In to add comment