maus234

Untitled

Aug 14th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 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 Leson01
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.            
  14.             Console.WriteLine("Видите кол-во людей в очереди");
  15.             int numberOfPeopleInLine  = Convert.ToInt32(Console.ReadLine());
  16.             int ConvertingPeopleToTime = numberOfPeopleInLine * 10;
  17.             int hour = ConvertingPeopleToTime / 60;
  18.             int minute = ConvertingPeopleToTime % 60;
  19.             Console.WriteLine("Вы должны отстоять в очереди" + " " + hour + " " + "часа и" + " " + minute + " " +"минут");
  20.            
  21.         }
  22.     }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment