diff --git a/du4/program b/du4/program index 48c13da..5f7e82c 100755 Binary files a/du4/program and b/du4/program differ diff --git a/du4/program.c b/du4/program.c index cdffea0..9f232eb 100644 --- a/du4/program.c +++ b/du4/program.c @@ -8,7 +8,7 @@ int main () bool second = false; while(1){ c = getchar(); - if(c <= 255 && c >= 0){ + if(c == ' ' || c == '+' || c == '\n' || c == '-' || c == '/' || c == '*' || c == '='){ if(c == '\n'){ break; }else if(c == ' '){ @@ -33,8 +33,6 @@ int main () continue; } }else{ - if(i == 2) - break; c = 0; int r = scanf("%d",&c); b[i++] = c; @@ -53,4 +51,4 @@ int main () else printf("ZLE\n"); return 0; -} \ No newline at end of file +}