uloha1
This commit is contained in:
parent
e1dd452836
commit
55aede05cc
@ -2,7 +2,7 @@
|
||||
|
||||
int main() {
|
||||
int c = 0;
|
||||
int pocet_riadkov = 0;
|
||||
int lines_count = 0;
|
||||
|
||||
while ((c = getchar()) != EOF) {
|
||||
if (c >= 'a' && c <= 'z') {
|
||||
@ -13,7 +13,7 @@ int main() {
|
||||
c = c - 'A' + 'a';
|
||||
} else if (c == '\n') {
|
||||
|
||||
pocet_riadkov++;
|
||||
lines_count++;
|
||||
}
|
||||
|
||||
if (c != '\n') {
|
||||
@ -22,7 +22,7 @@ int main() {
|
||||
}
|
||||
|
||||
// Po načítaní všetkých znakov vypíš počet riadkov
|
||||
printf("\nPocet nacitanych riadkov: %d\n", pocet_riadkov);
|
||||
printf("\nLines Count: %d\n", lines_count);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user