blob: 89057a137fc6195b8ceef1eaed4aaf862c0cab8f (
plain)
1
2
3
4
5
6
7
8
9
|
//Chapter 30 Ex2
clc;
clear;
close;
//(i)
n1=60; r1=3; n2=4; r2=4;
f1=factorial(n1)/factorial(n1-r1);
f2=factorial(n2)/factorial(n2-r2);
mprintf("(i) 60P3=%d\n (ii)4P4=%d",f1,f2);
|