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 hourInQueue;
- int minInQueue;
- Console.Write("Введите количество человек в очереди: ");
- people = Convert.ToInt32(Console.ReadLine());
- totalTime = people * timeOrReceipt;
- hourInQueue = totalTime / 60;
- minInQueue = totalTime % 60;
- Console.WriteLine($"Вы должны отстоять в очереди {hourInQueue} час(а/ов) {minInQueue} минут");
- }
- }
- }
Add Comment
Please, Sign In to add comment