summaryrefslogtreecommitdiff
path: root/1286/CH15/EX15.1/15_1.sce
blob: 16ecac39ad161aae7966967de75df59ee43e02fb (plain)
1
2
3
4
5
6
7
8
9
clc
//initialisations
c=8
h=3
t=5
//CALCULATIONS
a=factorial(8)/(factorial(3)*factorial(5)*2^8)
//results
printf(' \n probability of 3 heads and 5 tails= % 1f ',a)