diff --git a/1.B/VYPOČTENÍ ČASU.cs b/1.B/VYPOČTENÍ ČASU.cs new file mode 100644 index 0000000..88cea6c --- /dev/null +++ b/1.B/VYPOČTENÍ ČASU.cs @@ -0,0 +1,22 @@ +//by TeolorD +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}"); + } + } +} \ No newline at end of file