ivanakarpuzova

Палиндром

Oct 16th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int x;
  7.     scanf("%d", &x);
  8.     if(99<x && x>999)
  9.         printf("Ne validen vlez\n");
  10.     else if ((x%10) == (x/100))
  11.         printf("Palindrom e");
  12.     else
  13.         printf("Ne e palindrom");
  14.  
  15.     return 0;
  16. }
Add Comment
Please, Sign In to add comment