Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- int n, t;
- scanf("%d", &n);
- while( n > 0 && n < 1000000000){
- t = n%10;
- if(t == 0 || t == 6 || t == 8){
- n = n/10;
- }
- else break;
- }
- if ( n == 0) printf("1");
- else printf("0");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement