- 4

Find reverse of number

1521

3rd Sep 2017, 3:38 AM
Babu Raju
Babu Raju - avatar
4 Respostas
3rd Sep 2017, 4:27 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
https://code.sololearn.com/cNX70tC1h6TH/?ref=app
3rd Sep 2017, 4:35 AM
GAWEN STEASY
GAWEN STEASY - avatar
26th Sep 2017, 1:36 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
0
there is actually a few ways to do this. 1. transfer the data into array and then read from the last indez to the beginning. for example: i have array[] = {1521}. and an int new_variables = array[i] ( think for this part ). 2. declare 2 variables one is "number" the other is "reverse", get input into "number". for now you'll need a while loop. ( hint: use modulus to get last digit and multiplation to get reversed number ). i gave you info to work on. now just think.
3rd Sep 2017, 4:15 AM
Cain Eviatar
Cain Eviatar - avatar