- 4
Find reverse of number
1521
4 Answers
+ 4
https://code.sololearn.com/cNX70tC1h6TH/?ref=app
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.