C语言
#include "math.h" #include "stdio.h" main() { char a; a=getchar(); a=a-32; putchar(a); return 0; }
注意: ASCII表中小写字母比大写字母大,要减去得到大写