summaryrefslogtreecommitdiff
path: root/3689/CH12/EX12.6/12_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3689/CH12/EX12.6/12_6.sce')
-rw-r--r--3689/CH12/EX12.6/12_6.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3689/CH12/EX12.6/12_6.sce b/3689/CH12/EX12.6/12_6.sce
new file mode 100644
index 000000000..249c99e64
--- /dev/null
+++ b/3689/CH12/EX12.6/12_6.sce
@@ -0,0 +1,11 @@
+////
+//Variable Declaration
+n = 52 //Number of cards in std . pack
+j = 5 //Number of cards in subset
+
+//Calculation
+C = factorial(n)/(factorial(j)*factorial(n-j))
+
+//Results
+printf("\n Maximum Possible 5-card combinations are %8d",C)
+