summaryrefslogtreecommitdiff
path: root/3689/CH12/EX12.1/12_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3689/CH12/EX12.1/12_1.sce')
-rw-r--r--3689/CH12/EX12.1/12_1.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3689/CH12/EX12.1/12_1.sce b/3689/CH12/EX12.1/12_1.sce
new file mode 100644
index 000000000..bc5efee83
--- /dev/null
+++ b/3689/CH12/EX12.1/12_1.sce
@@ -0,0 +1,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)
+