fork download
  1. x=12
  2. y=10
  3. x0 = x
  4. y0 = y
  5. if x > y :
  6. x = 2*x0*y0
  7. y = (x0+y0)/2
  8. else :
  9. y = 2*x0*y0
  10. x = (x0+y0)/2
  11. print("x=",x)
  12. print("y=",y)
Success #stdin #stdout 0.02s 9176KB
stdin
Standard input is empty
stdout
x= 240
y= 11.0