p1=1/6;
p2=1/6;
p3=1/6;
p4=1/6;
p5=1/6;
p6=1/6;
expec= p1 + (2*p2)+(3*p3)+(4*p4)+(5*p5)+ (6*p6);
disp(expec)