Aktualizovat „du4/program.c“
This commit is contained in:
parent
fb7c90bfb9
commit
d43cfb6a6e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user