Advertisement
_nik3003moh_

4.31b

Oct 23rd, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int num;
  6.     scanf("%d",&num);
  7.     int d1 = num % 10;
  8.     int d2 = num / 10 % 10;
  9.     int d3 = num / 100;
  10.     if (d1==d2||d2==d3||d1==d3){
  11.         printf("YES");
  12.     }else{
  13.         printf("NO");
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement