How to get single digits present in a variable ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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