How can I number integer change to string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I number integer change to string?

4th Oct 2019, 6:39 AM
Saodat Hakimova
Saodat Hakimova - avatar
9 Answers
+ 1
Can we do the same in c++ also?
5th Oct 2019, 3:53 AM
Arsenic
Arsenic - avatar
+ 1
if you use js you can use parseint()
5th Oct 2019, 5:45 PM
Mostafa
Mostafa - avatar
0
what language ?
4th Oct 2019, 6:41 AM
Taste
Taste - avatar
0
4th Oct 2019, 6:42 AM
Saodat Hakimova
Saodat Hakimova - avatar
0
use str(your_int_here)
4th Oct 2019, 6:47 AM
Taste
Taste - avatar
0
If I input 1 Output one, If Input 9 Output nine This type my answer
4th Oct 2019, 6:54 AM
Saodat Hakimova
Saodat Hakimova - avatar
0
make a list from 0 to 9. fill each index with its string representation. and to access the string you can do this your_list[your_int]
4th Oct 2019, 6:57 AM
Taste
Taste - avatar
0
Thank you very much 😉😊
4th Oct 2019, 7:29 AM
Saodat Hakimova
Saodat Hakimova - avatar
0
just try it, you'll know
5th Oct 2019, 4:05 AM
Taste
Taste - avatar