How to get single digits present in a variable ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get single digits present in a variable ?

like if we have p=185. I should print every digit present there . help me sort this

23rd Sep 2018, 8:29 AM
Chethan.B
3 Answers
+ 5
What language are u trying in?
23rd Sep 2018, 8:38 AM
Frost
Frost - avatar
0
C++
23rd Sep 2018, 8:40 AM
Chethan.B