Advertisement
Pop_Paul0

24

Jan 22nd, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int oglindit(int x)
  4. {
  5.     int c,ogl=0;
  6.     while(x)
  7.     {
  8.         c=x%10;
  9.         ogl=ogl*10+c;
  10.         x=x/10;
  11.     }
  12.     return ogl;
  13. }
  14. int main()
  15. {
  16.     int a ,og;
  17.     cin>>a;
  18.     og=oglindit(a);
  19.     cout<<oo;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement