fork download
  1. import math
  2. x = input()
  3. x = float(x)
  4. if (x < -4):
  5. print (x ** 3)
  6. elif (x <= 5) and (x >= -4):
  7. print (math.sqrt(4 + x + 2 ** 3))
  8. elif (x > 8):
  9. print (math.sqrt(math.sqrt(10 + x)))
  10. else:
  11. print ("funkcja nie przyjmuje wartoci")
Success #stdin #stdout 0.02s 9040KB
stdin
10
stdout
2.114742526881128