mirror of
https://github.com/danbulant/databaze-ukolu-pro-pana-Malyho
synced 2026-06-07 00:40:31 +00:00
Update SO.1 {TEOLORD}
This commit is contained in:
parent
3d3c707211
commit
c06278eb11
1 changed files with 22 additions and 0 deletions
|
|
@ -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}");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue