Splitting up an int value?
I am trying to find out of a number is a palindrome, my problem is I have no idea what-so-ever to on how to split a number up.
for example if i had the user input 12345,
I am trying to figure out how to read 1 into num 1, 2 into num2, 3 into num3, etc.
Is there a special command to split up a numbeer without spaces between them?
I am trying to find out of a number is a palindrome, my problem is I have no idea what-so-ever to on how to split a number up.
for example if i had the user input 12345,
I am trying to figure out how to read 1 into num 1, 2 into num2, 3 into num3, etc.
Is there a special command to split up a numbeer without spaces between them?