Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # program na hledání maxima z řady čísel
- print("Zadávej přirozená čísla, vstup ukonči nulou.")
- max = 0 # proměnná pro maximum
- n = int(input("n = ")) # načtení přiroz. čísla
- while (n!=0):
- if(n>max):
- max = n
- n = int(input("n = ")) # načtení dalšího n
- print("Maximum = ", max)
- input("Stiskni ENTER")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement