diff --git a/cv3/program.c b/cv3/program.c index ea7464f..9b6781e 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -14,7 +14,7 @@ int main() { if (scanf("%lf", &input) != 1) { char c; - if (scanf("%c", &c) != 1) { + if (scanf("%c", &c) == 1) { if (count == 0){ printf("Nepodarilo sa nacitat zaklad x\n"); return 0;