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