Generation

generate functionMon, 03 Apr 2023

Shkruani nje program i cili merr nga perdorues disa numra dhe ne momentin qe perdoruesi shtyp 0 , ne ekran shfaqet vlera max

Script max_value = -1 while True: number = int(input("vendos nje numr: ")) if number == 0: print(max_value) break if number > max_value: max_value = number

Questions about programming?Chat with your personal AI assistant