summaryrefslogtreecommitdiff
path: root/55/CH6/EX6.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /55/CH6/EX6.6
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '55/CH6/EX6.6')
-rwxr-xr-x55/CH6/EX6.6/6ex6.sci9
1 files changed, 9 insertions, 0 deletions
diff --git a/55/CH6/EX6.6/6ex6.sci b/55/CH6/EX6.6/6ex6.sci
new file mode 100755
index 000000000..da51f7448
--- /dev/null
+++ b/55/CH6/EX6.6/6ex6.sci
@@ -0,0 +1,9 @@
+function [k]= funct1(n,p,q)
+k= factorial(n)/(factorial(p)*factorial(q));
+endfunction
+k=funct1(7,3,2) //in "BENZENE" three letters are alike(the three Es) and two are alike (the two Ns)
+disp(k,'The number of seven-letter words that can be formed using letters of the word BENZENE')
+
+disp('a set of 4 indistinguishable red coloured flags, 3 indistinguishable white flags and a blue flag is given')
+j=funct1(8,4,3);
+disp(j,'number of different signals ,each consisting of eight flags') \ No newline at end of file