Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int palindrom (int n) {
- int nb=0, cifra,pom=n;
- while (n!=0) {
- cifra=n%10;
- nb=nb*10+cifra;
- n/=10;
- }
- if (pom==nb) return 1;
- return 0;
- return nb;
- }
- int main () {
- printf("%d",palindrom(123321));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement