输入两个大写英文字符(A~Z),按照字典序输出。
输入
输入只有一行,包含两个大写英文字符,字符之间用空格分开。
输出
按照字典序输出两个字符,字符之间用逗号分隔。
样例输入
B A
样例输出
A,B
提示
逗号是英文格式,参见输出样例。
**
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
char ch1,ch2;
scanf("%c %c",&ch1,&ch2);
if(ch1<ch2)
printf("%c,%c",ch1,ch2);
else
printf("%c,%c",ch2,ch1);
return 0;
}