diff --git a/du1/program.c b/du1/program.c index 41da585..81c9425 100644 --- a/du1/program.c +++ b/du1/program.c @@ -2,6 +2,8 @@ int main(){ char word; + char word; + for (int count = 0; (word = getchar()) != EOF;) { if (word >= 'a'&&word <= 'z') { word -= 32; @@ -11,13 +13,15 @@ char word; } if (word == '\n') { count++; - for(int i =0;i