0

Numbers to individual digits

How do you print a given number of 5 numbers by the user into individual digits?

16th Feb 2020, 6:24 AM
Carlos Cordova
4 Respostas
+ 2
Please specify a language in the question tags, 'need help' didn't help deduce what help is needed, nor in which language : )
16th Feb 2020, 7:04 AM
Ipang
+ 1
You mean separating a five digit number into individual digits? Logic: Store the value of number%10 into a variable and display it and the modify the number i.e. number=number/10 And repeat the same procedure till number<=0
16th Feb 2020, 6:50 AM
Chetali Shah
Chetali Shah - avatar