Advertisement
Maszi

rys 3.3 moodle

Dec 1st, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. liczba = int(input("Podaj liczbę: "))
  2. suma = 0
  3. parzyste = 0
  4. while liczba !=0:
  5.     if liczba % 2 == 0 and liczba > 10:
  6.         suma += liczba
  7.         parzyste+=1
  8.     liczba = int(input("Podaj liczbę: "))
  9. print("Liczba liczba parzystych: " + str(parzyste)+"\nSuma liczb parzystych: " + str(suma))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement