by Dinesh Thakur

 

 

#include <stdio.h>

int a,b,num;
main()
{
        clrscr();
        printf("\nEnter number:");
        scanf("%d",&num);
        a=num/10;
        b=num-a*10;
        printf("\n\nThe reverse is %d%d\n",b,a);
        getch();
 }