- 1

Write a java program to reverse a number in entered number

18th Feb 2018, 3:05 PM
gopabandhu sahoo
gopabandhu sahoo - avatar
2 Respuestas
+ 2
int revNum(int num) { int rev = 0; while (num > 0) { rev = rev * 10 + num % 10; num /= 10; } return rev; }
18th Feb 2018, 5:13 PM
David Akhihiero
David Akhihiero - avatar
18th Feb 2018, 3:06 PM
gopabandhu sahoo
gopabandhu sahoo - avatar