fork download
  1. liczba=float(input())
  2. ujemne=0
  3. dodatnie=0
  4. trójkowe=0
  5. while liczba!=0 :
  6. if liczba%3==0 : trójkowe+=1
  7. if liczba>0: dodatnie=dodatnie+1
  8. else : ujemne+=1
  9. liczba=float(input())
  10.  
  11. print("(+)", dodatnie)
  12. print("(-)", ujemne)
  13. print("(3)", trójkowe)
Success #stdin #stdout 0.13s 14104KB
stdin
12
4
5
3
9
-1
-2
1.2
1.9
0
stdout
(+) 7
(-) 2
(3) 3