3 by andreea27

VIEWS: 9 PAGES: 1

									#include<iostream.h> #include<conio.h> void main() { int n,i,ninv=0,a,b,p; cout<<"a=";cin>>a; cout<<"b=";cin>>b; for(i=a;i<=b;i++) {ninv=0; p=i; while(p>0){ninv=ninv*10+p%10; p=p/10;} if(ninv==i) cout<<i<<endl; } getch(); }


								
To top