#include <stdio.h> int main() { char ch; ch = getchar(); if(ch >='a' && ch <='z')//只处理小写字母 { ch -= 32; printf("%c,%d\n",ch,ch); } return 0; }