十万火急的一个程序问题,请帮忙,十万分感激!
pydqh 2003-08-25 09:28:08 要求:在UNIX下运行
输入数字,输出对应的单词
输入单词,输出对应的数字
数字范围:0--1,000,000,000
例如:输入5, 输出five
输入five, 输出5
输入0, 输出zero
输入zero, 输出0
输入13, 输出thirteen
输入thirteen, 输出13
输入100000001, 输出one hundred million one
输入:one hundred twenty three million
four hundred fifty six thousand
seven hundred eighty nine
输出:123456789
输入:10000001
输出:one hundred million one
如果输入“hello”“123abc”就输出“invalid input”
备注:输入的单词不在乎大小写