Saturday, July 7, 2012

Mirror/ Reverse Number

Assalamu Alaikum. Hope you all are well by the grace of almighty ALLAH. Today we learn how to find out the reverse order of an integer number. Take a look at the problem.

Problem: Take an integer number as input. Print the digits of the number in reverse order.

Sample Input: 123456
Sample Output: 654321

Solution:


We can also do this program by the following way.


Thank you all..:)


0 comments:

Post a Comment