Advertisement
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 ConsoleApp4
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Введите кол-во людей в очереди:");
- int a = Convert.ToInt32(Console.ReadLine());
- int hours = (a * 10)/60;
- int minutes = a * 10 - hours * 60;
- Console.WriteLine("Вы должны отстоять в очереди " + hours + " часов " + minutes + " минут.");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement