求教:加法的C代码
Problem description Reads in positive integers A and B,calculates A + B.Pay attention:A and B is composed by simple English word.
[0-9]:"zero","one","two","three","four","five","six","seven","eight","nine";
Input
Standard input will contain multiple test cases.Each testcase occupies a line.the form is "A + B =",the neighboring two characters string has a blank space.When A and B is 0 at the same time ,inputs finished.You shouldn't output the result 0.
Output
For each testcase outputs 1 line,The result of A + B,by simple English word too.Each word is separated with a single space.There's no space after the last word.
Sample Input
one + two =
three four + five six =
zero + zero =
Sample Output
three
nine zero