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++){