Q. Write a program to take a two digit number and then print the reversed number .
That is , if the input give is 25 , the program should print 52.
You can understand by Watching video :-
Answer :-
a = int(input("Enter a two digit number = ")) b = a // 10 c = a% 10 print("Number in reverse order = ", c , b )
Output :-
Enter a two digit number = 25
Number in reverse order = 5 2
>>>
Enter a two digit number = 65
Number in reverse order = 5 6
>>>
Enter a two digit number = 87
Number in reverse order = 7 8
>>>
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )