Изменить 'du4/program.c'
This commit is contained in:
parent
a542261a9b
commit
b1e6cb9bcc
@ -4,8 +4,8 @@
|
||||
#include <ctype.h>
|
||||
|
||||
int call(float A, float B, float C, char AC){
|
||||
if(AC=='/'&&B==0||AC!=('+'||'-'||'*'||'-')){
|
||||
return printf("CHYBA\n");;
|
||||
if(AC=='/'&&B==0||AC==('+'||'-'||'*'||'-')){
|
||||
return printf("CHYBA\n");
|
||||
}
|
||||
else if(AC=='+'){
|
||||
if(A+B==C)return printf("OK\n");
|
||||
@ -22,7 +22,8 @@ int call(float A, float B, float C, char AC){
|
||||
else if(AC=='/'){
|
||||
if(A/B==C)return printf("OK\n");
|
||||
return printf("ZLE\n");
|
||||
}
|
||||
}
|
||||
return printf("CHYBA\n");
|
||||
}
|
||||
|
||||
int main()
|
||||
|
Loading…
Reference in New Issue
Block a user