From c44e0c4ec2f15358501c4a5f2e9823b3e3dadde5 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Fri, 18 Mar 2022 14:42:52 +0100 Subject: [PATCH] aaaa --- du3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du3/program.c b/du3/program.c index 42161c8..d51ec27 100644 --- a/du3/program.c +++ b/du3/program.c @@ -11,7 +11,7 @@ int main(){ for(int idx=0;1;idx++ ){ ch=getchar(); if(ch==EOF||ch==' ')break; - if((ch<'9'&&ch>'0')||(ch==EOF)||(ch==' ')||ch=='\n'); + if((ch<'9'&&ch>'0')||ch=='.'||(ch==EOF)||(ch==' ')||ch=='\n'); else printf("Nepodarilo sa nacitat polynom na 2 mieste.\n"); pol[idx]=ch; }