Home /
Expert Answers /
Computer Science /
reverse-and-the-sum-of-the-digits-of-a-three-digit-integer-write-a-program-that-prompts-users-to-en-pa186

Reverse and the sum of the digits of a three-digit integer) Write a program that prompts users to enter a three-digit integer and output the reverse and the sum of the digits of the three-digit integer. Assume that users always enter a valid positive three-digit integer. Your code should work for all three-digit integers (100 to 999). If the user enters 100, the following results appear on the console. (Notice that 001 is recognized as 1 for the reversed number, and 1 + 0 + 0 = 1 as the sum of the digits of the number.)