main(){ char s[100]; char max,min; int i=1; scanf("%s",s); max=s[0],min=s[0]; while(s[i]!='\0'){ if(max max=s[i]; if(min>s[i]) min=s[i]; i++;} printf("最大字符:%c,最小字符:%c",max,min);}