mirror of
https://github.com/danbulant/databaze-ukolu-pro-pana-Malyho
synced 2026-05-27 06:01:50 +00:00
Delete VYPOČTENÍ ČASU.cs
This commit is contained in:
parent
fbff118f54
commit
147d30a809
1 changed files with 0 additions and 22 deletions
|
|
@ -1,22 +0,0 @@
|
|||
//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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue