Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Robots 0.29 KB | None | 0 0
  1. #include<iostream.h>
  2. void main()
  3. {int i,x,n,xx,ras,nr,ca,b,a,c;
  4. cin>>a>>b;
  5. nr=0;
  6. for(i=a;i<=b;i++)
  7.     {
  8.         x=i;
  9.         ras=0;
  10.         while(x!=0){
  11.                 c=x%10;
  12.                 ras=ras*10+c;
  13.                 x=x/10;
  14.                 }
  15.         if(i==ras && ras<=b)
  16.         //cout<<i<<","<<x<<" "; i=0 boule
  17.         cout<<i<<","<<x<<" ";
  18.         }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement