Add files via upload

This commit is contained in:
teolord 2021-10-31 16:58:59 +01:00 committed by GitHub
parent 46abc22066
commit 9413713fc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,38 @@
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}.");
}
}
}