diff --git a/1.B/HM.1 VYPOČTENÍ ČASU/SO.1 {TEOLORD} b/1.B/HM.1 VYPOČTENÍ ČASU/SO.1 {TEOLORD} index 8b13789..74ac9a0 100644 --- a/1.B/HM.1 VYPOČTENÍ ČASU/SO.1 {TEOLORD} +++ b/1.B/HM.1 VYPOČTENÍ ČASU/SO.1 {TEOLORD} @@ -1 +1,23 @@ +using System; +namespace ConsoleApp +{ + class Program + { + static void Main(string[] args) + { + Console.Write("Zadej minuty: "); + + int time = Int32.Parse(Console.ReadLine()); + + int leftminutes = time % 60; + + int hours = (time - leftminutes) / 60; + + Console.WriteLine($"Počet hodin: {hours}"); + Console.WriteLine($"Počet minut: {leftminutes}"); + + + } + } +}