0

Is there any way to make , for example, 10 into [1,0]?

Hello, I'm having a problem with one of my projects. I want to make the number 10, or any other number, split into the numbers that compose itself, like this: number = 55 output: [5,5] is there a way to do that?

6th Nov 2017, 11:44 PM
Purpou2
Purpou2 - avatar
1 Réponse
0
Ruby there is always a way
7th Nov 2017, 2:12 AM
~Sudo Bash
~Sudo Bash - avatar