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.01s 7436KB
stdin
Standard input is empty
stdout
('\xd0\xa0\xd0\xb5\xd0\xb7\xd1\x83\xd0\xbb\xd1\x8c\xd1\x82\xd0\xb0\xd1\x82 c =', 1.3488)