Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int x,y,a[20],b[20],i,ucx,oglx,ogly,ucy,cx,cy;
- int main()
- {
- cin>>x>>y;
- cx=x;
- cy=y;
- ucx=x%10;
- ucy=y%10;
- while(cx)
- oglx=oglx*10+cx%10 , cx/=10;
- while(cy)
- ogly=ogly*10+cy%10 , cy/=10;
- cout<<ucy;
- cx=oglx;
- oglx/=10;
- while(oglx>9)
- {
- cout<<oglx%10;
- oglx/=10;
- }
- cout<<ogly%10<<" ";
- cout<<ucx;
- ogly/=10;
- while(ogly>9)
- {
- cout<<ogly%10;
- ogly/=10;
- }
- cout<<cx%10;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement