Take three integer number and return reverse value of this three numbers in java Programming
Take three integer number and return reverse value of this three numbers.
Methodology: For reverse
number first take three integer number in a veriable .Take three veriables one for remainder and one for
revese num and one for number .Now take a loop which is “while(num!=0)”. Now follow the theory
For remainder= remainder=num%10; for reverse
=reverse*10+remainder;for number=number/10; . After finish this print the reverse veriable .
Source code:
Output:
No comments