Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream.h>
- void main()
- {int i,x,n,xx,ras,nr,ca,b,a,c;
- cin>>a>>b;
- nr=0;
- for(i=a;i<=b;i++)
- {
- x=i;
- ras=0;
- while(x!=0){
- c=x%10;
- ras=ras*10+c;
- x=x/10;
- }
- if(i==ras && ras<=b)
- //cout<<i<<","<<x<<" "; i=0 boule
- cout<<i<<","<<x<<" ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement