mirror of
https://github.com/danbulant/databaze-ukolu-pro-pana-Malyho
synced 2026-07-10 13:41:50 +00:00
Delete 1.K/HW.1 PŘIVÍTÁNÍ directory
This commit is contained in:
parent
e921239de1
commit
4e5c4aa625
1 changed files with 0 additions and 38 deletions
|
|
@ -1,38 +0,0 @@
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace PVAukol
|
|
||||||
{
|
|
||||||
class Program
|
|
||||||
{
|
|
||||||
static void Main(string[] args)
|
|
||||||
{
|
|
||||||
|
|
||||||
int cas = DateTime.Now.Hour;
|
|
||||||
|
|
||||||
Console.Write("Vaše jméno: ");
|
|
||||||
string jmeno = Console.ReadLine();
|
|
||||||
string doba;
|
|
||||||
|
|
||||||
if (cas < 12)
|
|
||||||
{
|
|
||||||
doba = "rána";
|
|
||||||
}
|
|
||||||
|
|
||||||
else if(cas >= 12 && cas < 18)
|
|
||||||
{
|
|
||||||
doba = "odpoledne";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
doba = "večera";
|
|
||||||
}
|
|
||||||
|
|
||||||
Console.WriteLine($"Dobrého {doba}, ti přeji {jmeno}.");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue