This commit is contained in:
Yaroslav Orlianskyi 2022-03-01 18:33:11 +01:00
parent 2d4380cb6d
commit f44ae3a4df

View File

@ -2,16 +2,14 @@
int main(){ int main(){
int c = 0; int c = 0;
int big; //int big;
char d; char d;
while( c != EOF){ while( c != EOF){
c = getchar(); c = getchar();
if (c >= 'a' && c <= 'z'){ if (c >= 'a' && c <= 'z'){
big = c - 'a' + 'A'; d = c - 'a' + 'A';
d = big;
c = d;
} }
putchar (c); putchar (d);
} }
return 0; return 0;
} }