Hey everybody,
i need a function that takes a number and prints the reverse.
for example input 321, output 123
What have you tried for this problem? I can just give you the algorithm for this.
1) Devide the number by 100 and take the integer part in a variable. Take the fractional part and again devide it by 10. Thus you will get 3 numbers individually
2) now rearrange those number by multiplying and adding them.
Comment