#include<stdio.h>
char up(char ch)
{
char x;
if((ch>='a')&&(ch<='z'))
x='A'+ch-'a';
else
x=ch;
return x;
}
int main()
{
char ch;
do
{
printf("input a character:\n");
scanf("%c",&ch);
ch=up(ch);
printf("%c\n",ch);
while((ch=getchar())!='\n');
}
while(1);
return 0;
}
char up(char ch)
{
char x;
if((ch>='a')&&(ch<='z'))
x='A'+ch-'a';
else
x=ch;
return x;
}
int main()
{
char ch;
do
{
printf("input a character:\n");
scanf("%c",&ch);
ch=up(ch);
printf("%c\n",ch);
while((ch=getchar())!='\n');
}
while(1);
return 0;
}