Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp5
- {
- class Program
- {
- static void Main(string[] args)
- {
- string numberOfPeopleInQueue;
- int timeForOnePerson = 10;
- string hello = "Введите число людей в очереди:";
- int countOfPeople;
- int time;
- string end;
- Console.Write(hello);
- numberOfPeopleInQueue = Console.ReadLine();
- countOfPeople = Convert.ToInt32(numberOfPeopleInQueue);
- time = countOfPeople * timeForOnePerson;
- end = "Вы должны отстоять в очереди: " + time + " минут.";
- Console.WriteLine(end);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement