maus234

Untitled

Aug 14th, 2021
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.77 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.             int timeInLine = 10;
  15.             int hour = 60;
  16.             Console.WriteLine("Видите кол-во людей в очереди");
  17.             int numberOfPeopleInLine = Convert.ToInt32(Console.ReadLine());
  18.             int convertingPeopleToTime = numberOfPeopleInLine * timeInLine;
  19.             int hour2 = convertingPeopleToTime / hour;
  20.             int minute = convertingPeopleToTime % hour;
  21.             Console.WriteLine($"Вы должны отстоять в очереди {hour2} часа и {minute} минут");
  22.  
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment