pvjc24/cv1/program.c

29 lines
606 B
C
Raw Normal View History

2024-02-21 13:07:17 +00:00
#include <stdio.h>
2024-02-17 10:42:30 +00:00
2024-02-21 13:07:17 +00:00
int main() {
int text;
2024-02-17 10:42:30 +00:00
2024-02-21 13:07:37 +00:00
<<<<<<< HEAD
2024-02-21 13:07:17 +00:00
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;
} else if (text < 32 || text == 127) {
continue;
}
2024-02-21 13:07:37 +00:00
=======
2024-02-17 10:42:30 +00:00
printf("hello world\n");
2024-02-17 19:42:23 +00:00
return 1;
2024-02-21 13:07:37 +00:00
>>>>>>> ae41227d7eccd9cfc8364f26b732c73f151b6d66
2024-02-17 10:42:30 +00:00
2024-02-21 13:07:17 +00:00
putchar(text);
}
printf("\nPocet riadkov: 1\n");
return 0;
2024-02-17 10:42:30 +00:00
}