diff options
Diffstat (limited to '1553/CH31/EX31.3/31Ex3.sce')
-rw-r--r-- | 1553/CH31/EX31.3/31Ex3.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH31/EX31.3/31Ex3.sce b/1553/CH31/EX31.3/31Ex3.sce new file mode 100644 index 000000000..ff35de1b1 --- /dev/null +++ b/1553/CH31/EX31.3/31Ex3.sce @@ -0,0 +1,10 @@ +//chapter 31 Ex 3
+
+clc;
+clear;
+close;
+S={'1','2','3','4','5','6'};
+E={'3','6'};
+sizeS=size(S,"c"); sizeE=size(E,"c");
+prob=sizeE/sizeS;
+printf("The probability of getting multiple of 3 is %0.2f",prob);
|