initial import
[staff/goc4/2018bti7061.git] / c-3-libraries / examples / c-functions / function1.c
1 #include <stdio.h>
2 #include <math.h>
3
4 char lower2upper(char c){
5 int delta = 'A'-'a';
6 char res=c;
7 if((c>='a') && (c<='z')){
8 res += delta;
9 }
10 return res;
11 }
12
13 main(){
14 char c1;
15
16 while(scanf("%c",&c1)!=EOF){
17 c1 = lower2upper(c1);
18 printf("%c",c1);
19 }
20 }
21
22
23