summaryrefslogtreecommitdiff
path: root/1553/CH30/EX30.9/30Ex9.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH30/EX30.9/30Ex9.sce')
-rw-r--r--1553/CH30/EX30.9/30Ex9.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH30/EX30.9/30Ex9.sce b/1553/CH30/EX30.9/30Ex9.sce
new file mode 100644
index 000000000..a8b68c8d1
--- /dev/null
+++ b/1553/CH30/EX30.9/30Ex9.sce
@@ -0,0 +1,10 @@
+//Chapter 30 Ex 9
+
+clc;
+clear;
+close;
+men=6; mselect=3; ladies=5; lselect=2; //given
+menways=factorial(men)/(factorial(mselect)*factorial(men-mselect));
+ladiesway=factorial(ladies)/(factorial(lselect)*factorial(ladies-lselect));
+totways=menways*ladiesway;
+mprintf("A committee of 5 members consisting of 3 men and 2 ladies selected from 6 men and 5 ladies cen be choosen in %d ways",totways);