用C语言编写一个程序,从键盘上输入一个小写字母,将其本身及对应的大写字母输出.

日期:2017-06-15 16:03:07 人气:1

用C语言编写一个程序,从键盘上输入一个小写字母,将其本身及对应的大写字母输出.

#include int main() { char ch; scanf("%c",&ch); printf("%c",ch-'a'+'A'); return(0); }
    A+
热门评论