Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. liczba=5
  2. suma=0
  3. while (liczba>0):
  4. a=int(input("Podaj liczby do sprawdzenia"))
  5. if (a%10==0):
  6. suma = suma + a
  7. liczba=liczba-1
  8. print("liczba jest podzielna przez 10, suma wynosi", suma)
  9. else:
  10. suma = suma
  11. liczba=liczba-1
  12. print("liczba nie jest podzielna przez 10")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement