//Example 1.14 N=4; disp(N,"total No. of possible outcomes (N)="); M=2; disp(M,"No. of Favorable cases(both heads or both tails)="); P1=M/N; disp(P1,"Probab. of (both heads or both tails)=");