#include<stdio.h>
int main(){
char a[31];
if(scanf("%s",a)){};
int c=0;
int n=strlen(a);
int i=0;
char b[10][5]={"yi","er","san","si","wu","liu","qi","ba","jiu"};
for(i=0;i<n;i++){
c+=a[i]-'0';
};
if(1==c/100%10){
printf("%s ",b[0]);
};
if(3==((c/10)%10)){
printf("%s ",b[2]);
};
if(5==c/1%10){
printf("%s",b[4]);
};
}
pat 1002 写出这个数
![](https://img-home.csdnimg.cn/images/20240711042549.png)