diff options
Diffstat (limited to '1553/CH30/EX30.4/30Ex4.sce')
-rw-r--r-- | 1553/CH30/EX30.4/30Ex4.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH30/EX30.4/30Ex4.sce b/1553/CH30/EX30.4/30Ex4.sce new file mode 100644 index 000000000..29054baae --- /dev/null +++ b/1553/CH30/EX30.4/30Ex4.sce @@ -0,0 +1,10 @@ +//Chapter 30 Ex4
+clc;
+clear;
+close;
+
+S={'B','I','H','A','R'};
+sizeS=size(S,"c");
+reqLetters=sizeS; //since all the letters are required
+noWords=factorial(sizeS)/factorial(sizeS-reqLetters);
+mprintf("The required number of words are %.0f",noWords);
|