fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n,t,sum=0,a;
  6. printf("enter the no");
  7. scanf("%d",&n);
  8. while(n>0)
  9. {
  10. t=n;
  11. a=t%10;
  12. sum=(sum*10)+a;
  13. n=n/10;
  14. }
  15. if(sum==t)
  16. {
  17. printf("palindrome");
  18. }
  19. else
  20. {
  21. printf("Not");
  22. }
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
enter the nopalindrome