Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<fstream>
- using namespace std;
- struct {int x,y;}v[100];
- ifstream f("perechi.txt");
- int main()
- { int n,cx,ogl,i;
- f>>n;
- for(i=0;i<n;i++)
- {
- ogl=o;
- cx=v[i].x;
- while(x)
- {
- ogl=ogl*10+cx%10;
- cx/=10;
- }
- if(ogl==v[i].y)
- cout<<v[i].x<<' '<<v[i].y<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement