SorinTurda

Oglindit2

Nov 22nd, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.10 KB | None | 0 0
  1. int oglindit(int n){
  2.     int ogl=0;
  3.   while(n){
  4.     ogl = 10*ogl+n%10;
  5.     n /= 10;
  6.   }
  7.   return ogl;
  8. }
Add Comment
Please, Sign In to add comment