# include <stdio.h> int main(void) { char df; printf("请输入a或b:"); scanf("%c",&df); if (df == 'a') { printf("80~99"); } else if (df == 'b') { printf("70~79"); } else { printf("ERROR"); } getchar(); return 0; }