Compare commits
2 Commits
fc919bf24f
...
efbdedcbd0
Author | SHA1 | Date | |
---|---|---|---|
efbdedcbd0 | |||
2ad0ce0f99 |
@ -2,23 +2,30 @@
|
||||
|
||||
int main() {
|
||||
int text;
|
||||
<<<<<<< HEAD
|
||||
int lines_count = 0;
|
||||
|
||||
=======
|
||||
>>>>>>> fc919bf24f3667c09c78a8a23ed365424347b363
|
||||
while ((text = getchar()) != EOF) {
|
||||
if (text >= 'a' && text <= 'z') {
|
||||
text = text - 'a' + 'A';
|
||||
} else if (text >= 'A' && text <= 'Z') {
|
||||
text = text - 'A' + 'a';
|
||||
} else if (text == '\n') {
|
||||
printf("\n");
|
||||
continue;
|
||||
lines_count++;
|
||||
} else if (text < 32 || text == 127) {
|
||||
continue;
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
printf("hello world\n");
|
||||
return 1;
|
||||
>>>>>>> fc919bf24f3667c09c78a8a23ed365424347b363
|
||||
|
||||
putchar(text);
|
||||
}
|
||||
|
||||
printf("\nPocet riadkov: 1\n");
|
||||
printf("\nLines count: %d\n", lines_count);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user