fork download
  1. p1 = 0.5
  2. p2 = 0.25
  3.  
  4. print("F(0, 0) =", (1 - p1) * (1 - p2))
  5. print("F(0, 1) =", (1 - p1))
  6. print("F(1, 0) =", (1 - p2))
  7. print("F(1, 1) =", 1)
Success #stdin #stdout 0.02s 8940KB
stdin
Standard input is empty
stdout
F(0, 0) = 0.375
F(0, 1) = 0.5
F(1, 0) = 0.75
F(1, 1) = 1