Initial commit

This commit is contained in:
Jakub Frankovič 2026-02-21 14:12:35 +01:00
commit 796872c41c

23
a1/program.c Normal file
View File

@ -0,0 +1,23 @@
#include <stdio.h>
#include <ctype.h>
int main() {
int c;
int lines = 0;
while ((c = getchar()) != EOF) {
if (islower(c)) {
putchar(toupper(c));
} else if (isupper(c)) {
putchar(tolower(c));
} else if (c == '\n') {
putchar(c);
lines++;
} else if (isprint(c)) {
putchar(c);
}
}
printf("\nRiadky: %d\n", lines);
return 0;
}