C++ Program using constructor destructor to display the reverse of a number

C++ Program using constructor to display the reverse of a number

Write a C++ Program to display the reverse of a number using the constructor.

Output

Enter number to reverse: 678

The reverse of the Entered number: 876

C++ Program using Destructor to display the reverse of a number

Write a C++ Program to display the reverse of a number using the destructor.

Output

Enter number to reverse: 1629

The reverse of the Entered number: 9261