C/C++
1 #include<stdio.h> 2 3 int main(){ 4 char str[10][5] = {"ling","yi","er","san","si","wu","liu","qi","ba","jiu"}; 5 char num[100]; 6 int sum = 0, i = 0; 7 scanf("%s",&num); 8 for(i = 0; i < 100; i++){ 9 if(num[i] >= '0' && num[i] <= '9'){ 10 sum += num[i] - '0'; 11 } 12 if(num[i]=='