Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int p, a, b;
- scanf("%d",&p);
- if ((p >= 100)&&(p <=999))
- {
- a = p / 100;
- b = p % 10;
- if (a == b)
- printf("Palindrom");
- }
- else
- printf("Ne validen vlez");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment