Robert_Manea

polindrom

Nov 18th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {int n,aux,ogl=0;
  6. scanf("%d",&n);
  7. aux=n;
  8. while(aux!=0){
  9. ogl=ogl*10+aux%10;
  10. aux/=10;
  11. }
  12. if(n==ogl)
  13. printf("Polindrom");
  14. else
  15. printf("Nu este polindrom");
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment