From 5d39d501323621f0c7daea2647f9d93cc6e11fe9 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Wed, 1 Apr 2020 09:44:08 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du4/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du4/program.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/du4/program.c b/du4/program.c index cbfc483..2272dd8 100644 --- a/du4/program.c +++ b/du4/program.c @@ -39,10 +39,10 @@ for(int i=0;el!='\n';i++){ } sscanf(str,"%lF%c%lF=%lF ",&a,&ac,&b,&c); if(ac=='+')add(a,b,c,ac); -if(ac=='-')subtr(a,b,c,ac); -if(ac=='*')multi(a,b,c,ac); -if(ac=='/')divi(a,b,c,ac); -printf("CHYBA\n"); +else if(ac=='-')subtr(a,b,c,ac); +else if(ac=='*')multi(a,b,c,ac); +else if(ac=='/')divi(a,b,c,ac); +else printf("CHYBA\n"); return 0; }