Neon1x1st

4Hre

Mar 4th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp6
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int humanCount;
  10. int waitingTime;
  11. int hoursOfWaiting;
  12. int minutesOfWaiting;
  13. Console.Write("Введите кол-во людей перед вами в очереди:");
  14. humanCount = Convert.ToInt32(Console.ReadLine());
  15. Console.Write("Время за которое проходит один человек в минутах:");
  16. waitingTime = Convert.ToInt32(Console.ReadLine());
  17. hoursOfWaiting = humanCount * waitingTime / 60;
  18. minutesOfWaiting = humanCount * waitingTime % 60;
  19. Console.WriteLine("Вам ждать:" + hoursOfWaiting + " часа(ов) и " + minutesOfWaiting + " минут");
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment