Изменить 'du4/program.c'
This commit is contained in:
parent
eb4dee21c4
commit
e3c1986ed2
@ -5,23 +5,23 @@
|
|||||||
|
|
||||||
int call(double A, double B, double C, char AC){
|
int call(double A, double B, double C, char AC){
|
||||||
if(AC=='/'&&B==0){
|
if(AC=='/'&&B==0){
|
||||||
return printf("CHYBA");;
|
return printf("CHYBA\n");;
|
||||||
}
|
}
|
||||||
else if(AC=='+'){
|
else if(AC=='+'){
|
||||||
if(A+B==C)return printf("OK");
|
if(A+B==C)return printf("OK\n");
|
||||||
return printf("ZLE");
|
return printf("ZLE\n");
|
||||||
}
|
}
|
||||||
else if(AC=='-'){
|
else if(AC=='-'){
|
||||||
if(A-B==C)return printf("OK");
|
if(A-B==C)return printf("OK\n");
|
||||||
return printf("ZLE");
|
return printf("ZLE\n");
|
||||||
}
|
}
|
||||||
else if(AC=='*'){
|
else if(AC=='*'){
|
||||||
if(A*B==C)return printf("OK");
|
if(A*B==C)return printf("OK\n");
|
||||||
return printf("ZLE");
|
return printf("ZLE\n");
|
||||||
}
|
}
|
||||||
else if(AC=='/'){
|
else if(AC=='/'){
|
||||||
if(A/B==C)return printf("OK");
|
if(A/B==C)return printf("OK\n");
|
||||||
return printf("ZLE");
|
return printf("ZLE\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user