Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n=int(input())
- p1=0
- p2=0
- p3=0
- for i in range(n):
- current_number=int(input())
- if current_number%2==0:
- p1+=1
- if current_number%3==0:
- p2+=1
- if current_number%4==0:
- p3+=1
- print(f"{p1/n*100:.2f}%")
- print(f"{p2/n*100:.2f}%")
- print(f"{p3/n*100:.2f}%")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement