99问答网
所有问题
编写一个程序 将输入两个小写字母换成大写 用getchar函数读入两个小写字母
转换后分别用putchar和printf函数输出这两个字母
举报该问题
其他回答
第1个回答 2010-03-19
#include <stdio.h>
#include <ctype.h>
int main() {
int c1, c2;
c1 = getchar();
c2 = getchar();
putchar(toupper(c1));
printf("%c", toupper(c2));
return 0;
}本回答被提问者采纳
相似回答
大家正在搜