Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {int n,aux,ogl=0;
- scanf("%d",&n);
- aux=n;
- while(aux!=0){
- ogl=ogl*10+aux%10;
- aux/=10;
- }
- if(n==ogl)
- printf("Polindrom");
- else
- printf("Nu este polindrom");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment