From c3e03f53cc2f5beaee3555b80c3f3e8e31a930e6 Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 16:57:29 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 73af6a6..e585384 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -21,12 +21,14 @@ int main() { length = count; for (int y = 0; y < length; y++ ){ - if (isdigit(coefs[y]) == 0){ - printf("Nepodarilo sa nacitat polynom na %d mieste.", y); - break; + int b = coefs[y] + + if (isdigit(b) == 0){ + printf("Nepodarilo sa nacitat polynom na %d mieste.", y); + break; } else{ - continue; + continue; } }