This commit is contained in:
Nazar Sendetskyi 2022-03-03 22:23:08 +01:00
parent dd029665eb
commit ffdca1dfc3
3 changed files with 21 additions and 0 deletions

BIN
du1/.program.c.swp Normal file

Binary file not shown.

BIN
du1/program Executable file

Binary file not shown.

View File

@ -1 +1,22 @@
#include <stdio.h> #include <stdio.h>
int main(){
int C = 0;
char Big_Wort;
int count = 0;
while(1){
C = getchar();
if(C == EOF)
break;
if(C == '\n')
count++;
if(C >= 'a' && C <= 'z')
C = C - 'a' + 'A';
else if(C >= 'A' && C <= 'Z')
C = C - 'A' + 'a';
Big_Wort = C;
putchar(Big_Wort);
}
printf("\nCount of lines: %d\n",count);
return 0;
}