Advertisement
PRO100LY4UK

1.8

Aug 15th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp5
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string numberOfPeopleInQueue;
  10.             int timeForOnePerson = 10;
  11.             string hello = "Введите число людей в очереди:";
  12.             int countOfPeople;
  13.             int time;
  14.             string end;
  15.  
  16.             Console.Write(hello);
  17.             numberOfPeopleInQueue = Console.ReadLine();
  18.             countOfPeople = Convert.ToInt32(numberOfPeopleInQueue);
  19.             time = countOfPeople * timeForOnePerson;
  20.             end = "Вы должны отстоять в очереди: " + time + " минут.";
  21.             Console.WriteLine(end);
  22.  
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement