From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 1553/CH31/EX31.3/31Ex3.sce | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 1553/CH31/EX31.3/31Ex3.sce (limited to '1553/CH31/EX31.3/31Ex3.sce') 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); -- cgit