From aebdfd07141ea9d4eb6f1b8500af59918363b4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Wed, 20 Oct 2021 11:19:47 +0200 Subject: [PATCH] prvy --- cv3/program.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index c95d720..be23bd5 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -56,15 +56,15 @@ int main() { } else { if(line[0] >= 'a' && line[0] <= 'z') { + printf("bad input"); + break; + } + else { p = atof(line); number[a].cislo = p; a++; input++; } - else { - printf("bad input"); - break; - } } for (i = 0; i < a; i++){