summaryrefslogtreecommitdiff
path: root/3689/CH12/EX12.1/12_1.sce
blob: bc5efee83061ad9f3aeea2cc6fa6ce63db5245a9 (plain)
1
2
3
4
5
6
7
8
9
10
////Varible declaration

Prob = 0
for x = 1:51
    Prob = 1/(x) + Prob
end
Prob1=1.0
//Results
printf("\n Probability of picking up any one ball is %3.1f",Prob1)