Write a program that reads a three-digit number, calculates the new number by reversing its digits, and outputs a new number.
Tip: You can use the modulus operation to extract single digits from an integer.
Write a program that reads a three-digit number, calculates the new number by reversing its digits, and outputs a new number.
Tip: You can use the modulus operation to extract single digits from an integer.
Sample Input 1:
320Sample Output 1:
23Sample Input 2:
976Sample Output 2:
679Create a free account to access the full topic