Aktualizovat „du4/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-03 00:24:29 +00:00
parent fb7c90bfb9
commit d43cfb6a6e

View File

@ -48,11 +48,14 @@ double compare_percent(double a, double b, double eps)
}
int check(char *str){
char symb[5]="*-+/=";
for(int i =0;i<strlen(str);i++){
if(str[i]=='='&&str[i+1]=='='){
for(int k =0;k<5;k++){
if(str[i]==symb[k]&&str[i+1]==symb[k]){
return 0;
}
}
}
return 1;
}