Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- liczba=5
- suma=0
- while (liczba>0):
- a=int(input("Podaj liczby do sprawdzenia"))
- if (a%10==0):
- suma = suma + a
- liczba=liczba-1
- print("liczba jest podzielna przez 10, suma wynosi", suma)
- else:
- suma = suma
- liczba=liczba-1
- print("liczba nie jest podzielna przez 10")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement