Aktualizovat „du4/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-03 00:26:25 +00:00
parent d43cfb6a6e
commit 53209e612b

View File

@ -51,8 +51,10 @@ int check(char *str){
char symb[5]="*-+/=";
for(int i =0;i<strlen(str);i++){
for(int k =0;k<5;k++){
if(str[i]==symb[k]&&str[i+1]==symb[k]){
return 0;
for(int j =0;j<5;j++){
if(str[i]==symb[j]&&str[i+1]==symb[k]){
return 0;
}
}
}
}