Int n = 123456789; int m = 0; while (n != 0) { m = (10 * m) + (n % 10); n = n / 10; }
Answers
Answered by
3
Explanation:
the program reverses the number n
so, output is m = 987654321
Similar questions