fork download
  1. #This is my PYTHON program
  2. import math
  3. K=3
  4. L=12.48
  5. x=y=a=b=float()
  6. print('Please enter value for X\n')
  7. x=1.1
  8. a=math.tan(math.sqrt(K**3))-1/(2*x)
  9. print('Result is A=', a,'\n')
  10. b=(math.sin(2*x)*L*(3**math.sqrt(5.75)))/(0.842**4*math.sqrt(8*K)*math.cos(4*x))
  11. print('Result is B=', b, '\n')
  12. if a*b<0:
  13. y=(a-2*b)/(2*a+5*b)
  14. if a*b>=0:
  15. y=math.sqrt(a*b)
  16. print('Result is Y=', y, '/n')
Success #stdin #stdout 0.01s 7500KB
stdin
Standard input is empty
stdout
Please enter value for X

('Result is A=', -2.357843716335263, '\n')
('Result is B=', -185.79167766741065, '\n')
('Result is Y=', 20.93006783876944, '/n')