SHARE
TWEET

Untitled

pol9na Feb 29th, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Сprogect
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int quantityOfPeople, waitingTimeHour, waitingTimeMinutes, Time, TimeOfReception=10;
  14.             Console.WriteLine("Введите количество людей в очереди:");
  15.             quantityOfPeople = Convert.ToInt32(Console.ReadLine());
  16.             Time = quantityOfPeople *TimeOfReception;
  17.             waitingTimeHour = Time/ 60;
  18.             waitingTimeMinutes = Time% 60;
  19.  
  20.             Console.WriteLine("Вы должны отстоять в очереди "+waitingTimeHour+ " часа и " + waitingTimeMinutes + " минут");
  21.             Console.WriteLine(waitingTimeMinutes);
  22.             Console.ReadKey();
  23.  
  24.  
  25.         }
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top