sad
This commit is contained in:
parent
dd029665eb
commit
ffdca1dfc3
BIN
du1/.program.c.swp
Normal file
BIN
du1/.program.c.swp
Normal file
Binary file not shown.
BIN
du1/program
Executable file
BIN
du1/program
Executable file
Binary file not shown.
@ -1 +1,22 @@
|
||||
#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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user