Computer Science, asked by harshahoney4471, 7 months ago

Int n = 123456789; int m = 0; while (n != 0) { m = (10 * m) + (n % 10); n = n / 10; }

Answers

Answered by bktbunu
3

Explanation:

the program reverses the number n

so, output is m = 987654321

Similar questions