Reverse a number Coding Question-Asked in Google Interviews

Problem Statement :

Write code to Reverse of a number.

Input Format:

The input contains a single line with the number ’n’, the number that is to be reversed.

Output Format:

Print a single line with the number in the reversed order.

Given:

Output:

Code:

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Placewit

Placewit

Upskilling students for tech placements!