Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- g=n
- s = 0
- x0 = 0
- while n > 0:
- x = n % 10
- if x % 4 == 0:
- s += x
- if x == 0:
- x0 += 1
- n = n // 10
- if s != 0:
- print (s)
- else:
- if g==0:
- print (0)
- else:
- print ('No')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement