enter three it should display 3???????????

Salem commented: Learn to write English, not script kiddie puke -1

you would either have to create a lookup table or use some other kind of construct (like switch/case)... there are no standard library functions to perform the string to number conversion.

for large numbers, you would have to tokenize the string and create a number for each string individually.

Yes, though the inverse is easier due to formatting constraints. It's not a trivial problem, but it's also not overly difficult. What have you tried?

can u cr8 me program that words converted to numbers.(1-50) using switch. pls help me.