Aktualizovat „du1/program.c“
This commit is contained in:
parent
bd88a739f6
commit
b12dd50250
@ -15,16 +15,12 @@ int main() {
|
||||
word += 32;
|
||||
}
|
||||
if (word == '\n') {
|
||||
while (word + i == '\n') {
|
||||
count++;
|
||||
i++;
|
||||
}
|
||||
i = 0;
|
||||
printf("\n\nPočet riadkov: %d", count);
|
||||
count = 0;
|
||||
}
|
||||
putchar(word);
|
||||
}
|
||||
printf("\n\nPočet riadkov: %d", count);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user