pvjc22/du1/program.c

18 lines
209 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;
int big;
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'){
big = c - 'a' + 'A';
d = big;
c = d;
2022-02-20 12:26:50 +00:00
}
2022-03-01 17:30:30 +00:00
putchar (c);
2022-02-20 12:20:20 +00:00
}
return 0;
}