From 0d86eb702048da8cb9e1e9edea04ddbe8f491728 Mon Sep 17 00:00:00 2001 From: ak643du Date: Fri, 8 Mar 2024 01:32:52 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;