pvjc22/du1/program.c

16 lines
187 B
C
Raw Normal View History

2022-02-20 12:20:20 +00:00
#include <stdio.h>
int main(){
2022-03-01 17:30:30 +00:00
int c = 0;
2022-03-01 17:33:11 +00:00
//int big;
2022-03-01 17:30:30 +00:00
char d;
while( c != EOF){
2022-02-20 12:20:20 +00:00
c = getchar();
2022-03-01 17:30:30 +00:00
if (c >= 'a' && c <= 'z'){
2022-03-01 17:33:11 +00:00
d = c - 'a' + 'A';
2022-02-20 12:26:50 +00:00
}
2022-03-01 17:33:11 +00:00
putchar (d);
2022-02-20 12:20:20 +00:00
}
return 0;
}