Aktualizovat „du4/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-03 00:27:42 +00:00
parent 53209e612b
commit 0a712fe1d7

View File

@ -48,6 +48,7 @@ double compare_percent(double a, double b, double eps)
}
int check(char *str){
int flag=0;
char symb[5]="*-+/=";
for(int i =0;i<strlen(str);i++){
for(int k =0;k<5;k++){
@ -57,8 +58,11 @@ int check(char *str){
}
}
}
if(str[i]=='='){
flag=1;
}
}
return 1;
return flag==1?1:0;
}