Delete 'cv1/program.c'

This commit is contained in:
Michal Utľák 2024-02-14 15:37:44 +00:00
parent a1a819fa6b
commit 8e3406d04d

View File

@ -1,29 +0,0 @@
#include <stdio.h>
#include <ctype.h>
int main() {
int ch;
int visibleChars = 0;
printf("Zadajte text (ukoncite vstup s Ctrl+D):\n");
while ((ch = getchar()) != EOF) {
if (islower(ch)) {
ch = toupper(ch);
} else if (isupper(ch)) {
ch = tolower(ch);
}
if (isprint(ch) || ch == '\n') {
putchar(ch);
if (ch != '\n') {
visibleChars++;
}
}
}
printf("\nPocet načítaných riadkov: %d\n", visibleChars);
return 0;
}