From d8138868b70ca5f7633191156e111f7fc428a102 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Fri, 18 Mar 2022 14:57:18 +0100 Subject: [PATCH] aaaaa --- du3/program.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/du3/program.c b/du3/program.c index ae7e86d..210f72d 100644 --- a/du3/program.c +++ b/du3/program.c @@ -15,16 +15,10 @@ int main(){ } for(int i=0, p=1;i='0')||(pol[i]=='.')||(pol[i]==EOF)||(pol[i]==' ')); + else if((pol[i]<='9'&&pol[i]>='0')||(pol[i]=='.')||(pol[i]==EOF)||(pol[i]==' ')); else { printf("Nepodarilo sa nacitat polynom na %d mieste.\n", p); return 0; - } - else if((pol[i]<='9'&&pol[i]>='0')||(pol[i]=='.')||(pol[i]==EOF)||(pol[i]==' ')); - else { - printf("Nepodarilo sa nacitat polynom na 2 mieste.\n"); - return 0; - } } int koef=-1;