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