Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 605 Bytes

File metadata and controls

25 lines (20 loc) · 605 Bytes

Easy


Problem Statement

Write a program to generate the reverse of a given number N. Print the corresponding reverse number.

Note: If a number has Trailing zeroes. Then its Reverse will not include them. For E.G. Reverse of 10400 will 401 instead of 00401

Sample Input 1

1234

Sample Output 1

4321

Sample Input 2

1980

Sample Output 2

891