clc clear //INPUT p1=1/6;//probability for the first throw gives 6 p2=1/6;//probability for the first throw gives 5 n=2;//the no.of dice are two //CALCULATIONS p=p1*p2*n;//the required probability is //OUTPUT mprintf('the required probability is %3.2f',p)