while True : #infinite iteration, , A = input ( "Enter A" ), , B = input (" Enter B" ), , if A == "1" and B=="1" :, , print ( " 1" ) # out 1 to the screen, , else: # the code underneath is executed when the if condition is false, , print ( " 0 " ) # out 0 to the screen, , repeat = input ( " repeat? Y/N" ), , if repeat == " Y" :, , continue # this ensures the algorithm loops back, , else : # the code underneath is executed when the if condition is false, , break # this statement breaks from the loop, .
0%
Logic Gate Code....
Podijeli
Podijeli
Podijeli
Autor
Snicholson
Uredi sadržaj
Ispis
Postavi
Više
Zadatke
Top-lista
Pokaži više
Pokaži manje
Ova top-lista je trenutno privatna. Odaberite opciju
Podijeli
da biste je javno objavili.
Ovu top-listu onemogućio je vlasnik sadržaja.
Ova top-lista je onemogućena jer se vaš odabir opcija razlikuje od postavki vlasnika sadržaja.
Vrati opcije na početne postavke
Razmjesti
je otvoreni predložak. Ne generira rezultate za top-listu.
Prijava je obvezna
Vizualni stil
Fontovi
Potrebna je pretplata
Postavke
Promijeni predložak
Prikaži sve
Više formata prikazat će se dok budete igrali.
)
Otvoreni rezultati
Kopiraj vezu
QR kôd
Izbriši
Vrati automatski spremljeno:
?