#include <stdio.h>
int main()
{char i;
while(i!='\n')
{scanf("%c",&i);
if(i=='A'||i=='B'||i=='C')
printf("2");
else if(i=='D'||i=='E'||i=='F')
printf("3");
else if(i=='G'||i=='H'||i=='I')
printf("4");
else if(i=='J'||i=='K'||i=='L')
printf("5");
else if(i=='M'||i=='N'||i=='O')
printf("6");
else if(i=='P'||i=='Q'||i=='S'||i=='R')
printf("7");
else if(i=='T'||i=='U'||i=='V')
printf("8");
else if(i=='W'||i=='X'||i=='Y'||i=='Z')
printf("9");
else if(1=='+')
printf("0");
else
printf("%c",i);
}
return 0;}
是同学吗,我们的教材都一样