fork download
  1. """
  2. i = 0
  3. while i <= 10:
  4. print (i)
  5. i = i +1
  6.  
  7. liczba = int(input("podaj liczbe: "))
  8. suma = 0
  9. while liczba != 0:
  10. liczba = int(input("podaj liczbe: "))
  11. suma = suma + liczba
  12. print(suma)
  13.  
  14. i = 0
  15. ile = 0
  16. while i <= 100:
  17. if i%2 == 0:
  18. ile = ile + 1
  19. i = i + 1
  20. print(ile)
  21. """
  22. i = 0
  23. ile = 0
  24. while i <= 100:
  25. if i%2 == 0 and i%10 == 4 or i%10 == 8:
  26. ile = ile + 1
  27. i = i + 1
  28. print(ile)
Success #stdin #stdout 0.05s 63132KB
stdin
Standard input is empty
stdout
20