fork download
  1. # This is my PYTHON program for variant 07
  2. import math
  3.  
  4. # Constants
  5. x1 = 2.6
  6. x2 = 2.8
  7. a = 3
  8. b = 6
  9.  
  10. # Step-by-step calculation
  11. y1 = math.pow(x1, 2) # x1^2
  12. y2 = math.pow(x2, 2) # x2^2
  13. y3 = y1 + y2 # x1^2 + x2^2
  14. y4 = y3 - a # чисельник
  15. y5 = x1 + b # знаменник
  16. c = y4 / y5 # фінальний результат
  17.  
  18. # Output
  19. print("Результат c =", round(c, 4))
  20.  
Success #stdin #stdout 0.11s 14216KB
stdin
Standard input is empty
stdout
Результат c = 1.3488