//Chapter 07: Discrete Probability clc; clear; no_blue=4 //no of blue balls no_red=5 //no of red balls prob_blue=no_blue/(no_red+no_blue) disp('The probability that a ball chosen at random will be blue is:') disp(prob_blue)