int reverse(int x){ int rev = 0; while(x>0){ tmp=x%10; res= res*10+tmp; x=x/10; } return res; }
숫자 뒤집기 cpp 구현
int reverse by cpp