Qualcomm Interview Question

Write a program to print a no in reverse in decimal format