Advertisement
MasterGun

Ez program to solve ax+b=0 and find x

May 13th, 2021
775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. print ("Program is made by M.Trotsenko")
  2. a = float(0)
  3. b = float(0)
  4. x = float(0)
  5. print ("Standart form is ax+b=0")
  6. print ("Enter A")
  7. a = float(input())
  8. print ("Enter B")
  9. b = float(input())
  10. print ("Okay, searching X")
  11. x = float(b/a)
  12. print (x,"Here is your X")
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement