summaryrefslogtreecommitdiff
path: root/260/CH6/EX6.1/6_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '260/CH6/EX6.1/6_1.sce')
-rw-r--r--260/CH6/EX6.1/6_1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/260/CH6/EX6.1/6_1.sce b/260/CH6/EX6.1/6_1.sce
new file mode 100644
index 000000000..28535e313
--- /dev/null
+++ b/260/CH6/EX6.1/6_1.sce
@@ -0,0 +1,13 @@
+//Eg-6.1
+//pg-277
+
+clear
+clc
+
+p1=.2;
+p2=0.3;
+p3=.4;
+//Sum of probabilities =1
+p4=1-p3-p2-p1;
+disp("probability of getting 4 is ")
+disp(p4)