Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp2
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.            
  14.             int ludi;
  15.             int chasi;
  16.             int minuti;
  17.             int ochered;
  18.             Console.Write("Здравствуйте. Какое кол - во людей вы видите: ");
  19.             ludi = Convert.ToInt32(Console.ReadLine());
  20.             ochered = ludi * 10;
  21.             chasi = ochered / 60;
  22.             minuti = ochered % 60;
  23.             Console.WriteLine($"Перед вами {ludi} человек, вам осталось ждать {chasi} часов {minuti}");
  24.             Console.ReadKey();
  25.  
  26.  
  27.  
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement