Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- liczba = int(input("Podaj liczbę: "))
- suma = 0
- parzyste = 0
- while liczba !=0:
- if liczba % 2 == 0 and liczba > 10:
- suma += liczba
- parzyste+=1
- liczba = int(input("Podaj liczbę: "))
- print("Liczba liczba parzystych: " + str(parzyste)+"\nSuma liczb parzystych: " + str(suma))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement