Given randomly chosen numbers, $x$ and $y$, in the interval $[a,b]$, write some code to find the expected value of $xy$? (Ans: $(a+b)^2/4$.)← Back to challenges | Lessons

Run Share Lua reference