Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- genap, ganjil, pos, neg = 0, 0, 0, 0
- for x in range(5):
- value = int(input())
- if value % 2 == 0:
- genap += 1
- else:
- ganjil += 1
- if value < 0:
- neg += 1
- elif value > 0:
- pos += 1
- print(f"{genap} valor(es) par(es)")
- print(f"{ganjil} valor(es) impar(es)")
- print(f"{pos} valor(es) positivo(s)")
- print(f"{neg} valor(es) negativo(s)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement