From d0ed058f0ea2b74405cc237e5a5a8bd2cfd0f459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=A9re=C5=A1?= Date: Sun, 10 Nov 2019 15:55:34 +0000 Subject: [PATCH] Aktualizovat "program.c --- program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program.c b/program.c index 802456c..9e70232 100644 --- a/program.c +++ b/program.c @@ -20,7 +20,7 @@ unsigned long long int nsd(long long int cislo1,long long int cislo2){ return nsd(cislo2 % cislo1, cislo1); } int main() { - //freopen("vstup.txt","r",stdin); + freopen("vstup.txt","r",stdin); char* prvy_vstup = malloc(100* sizeof(char)); char* druhy_vstup = malloc(100* sizeof(char)); unsigned long long int prve_cislo; @@ -48,12 +48,12 @@ int main() { goto koniec; } else{ if (druhe_cislo = strtoull(druhy_vstup,NULL,0) == ULLONG_MAX){ - printf("%s je mimo rozsahu.",druhy_vstup); + printf("%s je mimo rozsahu.\n",druhy_vstup); goto koniec; } else if (prve_cislo == ULLONG_MAX){ - printf("%s je mimo rozsahu.",prvy_vstup); + printf("%s je mimo rozsahu.\n",prvy_vstup); goto koniec; } else{ unsigned long long int vysledok = nsd(prve_cislo,druhe_cislo = strtoull(druhy_vstup,NULL,0));