Advertisement
maus234

Untitled

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