Lucian_Adrian

#24 Oglindit2

Feb 12th, 2022
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 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. }
Advertisement
Add Comment
Please, Sign In to add comment