//Caption: Probability //Example 2.1.a //page no 43 //Find the Probability clc; clear; redballs=3; whiteballs=4; blackballs=5; //P=ways of choosing a red ball/Total no. of ways choosing a ball Pro=redballs/(redballs+whiteballs+blackballs); disp("Probability Getting red ball is"); disp(Pro,"P(R)=");