Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int oglindit(int x)
- {
- int c,ogl=0;
- while(x)
- {
- c=x%10;
- ogl=ogl*10+c;
- x=x/10;
- }
- return ogl;
- }
- int main()
- {
- int a ,og;
- cin>>a;
- og=oglindit(a);
- cout<<oo;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement