This program takes five digit number from the user and reverse these numbers like 12345 to 54321. Program to reverse five digit number . This is for C++. You can compile and run this program in DevC++ or Code Block.The source code is given below.
using namespace std;
cout<<“Enter 5-digit number “;
cout<<“Number in Reverse Order is “<<n<<d<<c<<b<<a;
Here is output is given of this code