Compare commits
No commits in common. "f15275a775eff018360f54c4474837ed16270af8" and "0bdd5c0058b29e4076553422cbeaf75b2a12b157" have entirely different histories.
f15275a775
...
0bdd5c0058
@ -1,25 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
int lines_count = -1;
|
|
||||||
int c;
|
|
||||||
|
|
||||||
while ((c = getchar()) != EOF) {
|
|
||||||
if (islower(c)) {
|
|
||||||
putchar(toupper(c));
|
|
||||||
} else if (isupper(c)) {
|
|
||||||
putchar(tolower(c));
|
|
||||||
} else {
|
|
||||||
putchar(c);
|
|
||||||
if (c == '\n') {
|
|
||||||
lines_count++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("Počet načítaných riadkov: %d\n", lines_count);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user