Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1.  
  2. # ! /usr/bin/env python3
  3. # -*- coding: utf-8 -*-
  4.  
  5. op = "t"
  6. while op == "t":
  7. a, b, c = input("Podaj trzy liczby oddzielone spacjami: ").split(" ")
  8.  
  9. print("Wprowadzono liczby:", a, b, c)
  10. print("\nNajmniejsza:")
  11.  
  12. if a < b:
  13. if a < c:
  14. najmniejsza = a
  15. else:
  16. najmniejsza = c
  17. elif b < c:
  18. najmniejsza = b
  19. else:
  20. najmniejsza = c
  21.  
  22. print(najmniejsza)
  23.  
  24. op = input("Jeszcze raz (t/n)? ")
  25.  
  26. print("Koniec.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement