summaryrefslogtreecommitdiff
path: root/1553/CH30/EX30.8/30Ex8.sce
blob: d220da288c6e87ed4080043efabc0da9af95ad26 (plain)
1
2
3
4
5
6
7
8
//Chapter 30 Ex 8

clc;
clear;
close;
total=15; chosen=11;
noways=factorial(total)/(factorial(chosen)*factorial(total-chosen));
mprintf("The number of ways in which a cricket 11 be chosen out of a batch of 15 players is %d",noways);