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