Advertisement
slemiba

10e_feltétel

Sep 21st, 2021
1,025
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. Aszam = int( input("A=? "))
  2. Bszam = int( input("B=? "))
  3.  
  4. if Aszam == 0:
  5.     print("Az 1. a nulla")
  6. else:
  7.     print("Az 1. nem nulla")
  8.  
  9. if Bszam < 0:
  10.     print("Negatív")
  11. if Bszam > 0 or Aszam >0:
  12.     print("Van pozitív szám")
  13. if Bszam == 0 and Aszam > 0:
  14.     print("B 0, A pozitív")
  15.  
  16.  
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement