Advertisement
brsjak

Broj Palindrom - SPLab-2

Oct 16th, 2016
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. int main(){
  2. int n;
  3.     scanf("%d",&n);
  4.     if(n>99&&n<1000){
  5.         if(n%10==n/100){
  6.              printf("Palindrom");
  7.         }
  8.         else {
  9.                 printf("Ne e palindrom");
  10.         }
  11.     }
  12.     else printf("Nevaliden vlez");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement