fork download
  1. a, b, c = map(float, input("Podaj liczby a, b, c: ").split())
  2.  
  3. if a == 0:
  4. if b == c:
  5. print("NWR")
  6. else:
  7. print("BR")
  8. else:
  9. x = (c - b) / a
  10. print(f"{x:.2f}")
  11.  
Success #stdin #stdout 0.04s 9692KB
stdin
0.00 2.00 2.00
stdout
Podaj liczby a, b, c: NWR