Изменить 'du4/program.c'
This commit is contained in:
parent
acb519bb07
commit
5d39d50132
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user