long int reverse(long int i) { long int m,j=0; m=i;//DO not forget! while(m) { j=j*10+m%10; m=m/10; } return j; }