//Example 1.17 clc; clear; N=56; disp(N,"total No. of ways of seleting 2 balls(out of 8) one by one ="); M1=15; disp(M1,"the 1st ball is white and the 2nd is black= "); M2=30; disp(M2,"one ball is white and the other is black"); P1=M1/N; P2=M2/N; disp(P2,"Probability that one ball is white and the other is black",P1,"Probability that 1st ball is white and the 2nd is black=");