C语言实验——转换字母(顺序结构)
Description
从键盘上输入一个小写字母,然后将小写字母装换成大写字母输出!
Input
从键盘上输入一个小写字母。
Output
小写字母装换成大写字母输出。
Sample
Input
a
Output
A
#include <stdio.h>
#include <stdlib.h>
int main()
{
char x,y;
scanf("%c",&x);
y=x-32;
printf("%c",y);
return 0;
}