Answer:
clc%clears screen
clear all%clears history
close all%closes all files
p=250;
M=[];
for i=1:100000
re=0;
S=0;
while(S<=1)
S=S+rand;
re=re+100;
end
M(i)=re;
end
disp('Expected received money is');
mean(M)
disp('Since expcted is greater than what we pay. So, we will play')
Step-by-step explanation:
You would use the Pythagorean theorem and plug it in