0
Numbers to individual digits
How do you print a given number of 5 numbers by the user into individual digits?
4 Antworten
+ 2
Please specify a language in the question tags, 'need help' didn't help deduce what help is needed, nor in which language : )
+ 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