Challenge: Find the Reverse of the Input

Write code to find the reversed form of the number entered as input.

A number is entered through the keyboard. Write a program to obtain the reversed number of a given number. Additionally, determine whether the original and reversed numbers are equal or not.

  • Input: A number will be entered as an input.

  • Output: The original number, reversed form of the original number, and whether the original and reversed numbers are equal or not will be printed on the console.

Get hands-on with 1400+ tech skills courses.