RavenChrstn

Untitled

Sep 24th, 2021
588
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. genap, ganjil, pos, neg = 0, 0, 0, 0
  2. for x in range(5):
  3.     value = int(input())
  4.     if value % 2 == 0:
  5.         genap += 1
  6.     else:
  7.         ganjil += 1
  8.     if value < 0:
  9.         neg += 1
  10.     elif value > 0:
  11.         pos += 1
  12. print(f"{genap} valor(es) par(es)")
  13. print(f"{ganjil} valor(es) impar(es)")
  14. print(f"{pos} valor(es) positivo(s)")
  15. print(f"{neg} valor(es) negativo(s)")
RAW Paste Data