111
This commit is contained in:
parent
c7706f9f1b
commit
f12668a0ca
28
du1/program.c
Normal file
28
du1/program.c
Normal file
@ -0,0 +1,28 @@
|
||||
nclude <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
char simb;
|
||||
int riad=0;
|
||||
while(1){
|
||||
simb=getchar();
|
||||
if(islower(simb)){
|
||||
simb-=32;
|
||||
}
|
||||
else if (isupper(simb)){
|
||||
simb+=32;
|
||||
}
|
||||
else if(simb==EOF){
|
||||
break;
|
||||
}
|
||||
putchar(simb);
|
||||
if(simb=='\n'){
|
||||
riad++;
|
||||
}
|
||||
}
|
||||
printf("%d",riad);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user