Odpowiedź :
Odpowiedź:
podzielne = []
liczba = int(input("Podaj liczbę: "))
while liczba != 0:
if liczba % 3 == 0:
podzielne.append(liczba)
liczba = int(input("Podaj liczbę: "))
ilosc = len(podzielne)
print(ilosc)
Wyjaśnienie:
Odpowiedź:
podzielne = []
liczba = int(input("Podaj liczbę: "))
while liczba != 0:
if liczba % 3 == 0:
podzielne.append(liczba)
liczba = int(input("Podaj liczbę: "))
ilosc = len(podzielne)
print(ilosc)
Wyjaśnienie: