commit a2371a5c8b5af2885012a8cf18a224d7efbb7a2d Author: Mykyta Sadchenko Date: Tue Feb 20 23:29:37 2024 +0100 funguje diff --git a/cv1/program.c b/cv1/program.c new file mode 100644 index 0000000..9b66871 --- /dev/null +++ b/cv1/program.c @@ -0,0 +1,29 @@ +#include + + + +int main(){ + +printf("Enter the text, please: "); + +int c; +while(( c = getchar()) != EOF){ +if( c >= 'a' && c <= 'z'){ + c = c - 32; +}else if( c >= 'A' && c <= 'Z'){ + c = c + 32; +} + if(c != '\n'){ + if(c >= 32 && c <=126){ + putchar(c); + } + }else{ + putchar('\n'); + } + +} + + return 0; +} + +