Qualcomm interview question

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