Изменить 'du4/program.c'

This commit is contained in:
Pavlo Tverdyi 2020-04-01 09:44:08 +00:00
parent acb519bb07
commit 5d39d50132

View File

@ -39,10 +39,10 @@ for(int i=0;el!='\n';i++){
} }
sscanf(str,"%lF%c%lF=%lF ",&a,&ac,&b,&c); sscanf(str,"%lF%c%lF=%lF ",&a,&ac,&b,&c);
if(ac=='+')add(a,b,c,ac); if(ac=='+')add(a,b,c,ac);
if(ac=='-')subtr(a,b,c,ac); else if(ac=='-')subtr(a,b,c,ac);
if(ac=='*')multi(a,b,c,ac); else if(ac=='*')multi(a,b,c,ac);
if(ac=='/')divi(a,b,c,ac); else if(ac=='/')divi(a,b,c,ac);
printf("CHYBA\n"); else printf("CHYBA\n");
return 0; return 0;
} }