0
String conversion
How do you convert numerical strings to alphabets
4 Answers
+ 4
Assume that num as string.
Python - - > str(num)
Ruby - - > num.to_s
C# - - > num.ToString() or num as string;
Java - - > String.valueOf(num) or Integer.toString(num);
0
Please add a tag with language đ
0
Hi! You mean this?
1 -> one
2 -> two
:
.
9 -> nine
0
You can refer to this code...
if you want
1 --> one
2 ---> two
.
.
.
if you mean "12/2" to 12/2==6
put it inside eval()
or "13" to 13
put it inside int()
https://code.sololearn.com/cCjeVCkyhT9x/?ref=app