Advertisement
Sabbir-bin

if--else

Jun 17th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. x= int(input("Enter your value = "))
  2. y= int(input("Enter your 2nd value = "))
  3. z= int(input("Enter your 3rd value = "))
  4.  
  5. if (x!=100 and y!=100 and z!=100):
  6.     print("x is = ",x)
  7.     print("x is = ",y)
  8.     print("x is = ",z)
  9.  
  10.    
  11. if x>0:
  12.     print("x is positive")
  13.  
  14. else:
  15.     print("  x is nagetive")
  16.    
  17. print("finish")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement