I want to get the digits of a number the user entered without using arrays.
Is it possible?
Thank you very much.
Printable View
I want to get the digits of a number the user entered without using arrays.
Is it possible?
Thank you very much.
Yes, simple arithmetic.
If you divide by then, you will chop off a digit.
If you then divide by then and take the reminder...
Can you give an example? (I am not a native english speaker so I am not sure if I get what you mean)
And then do what with them?
And yes, possible.
By not cross-posting.