summaryrefslogtreecommitdiff
path: root/3808/CH6/EX6.1/Ex6_1.sce
blob: 2afa6464b4a0bc4b9401db9008736b6c3813e3f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Chapter 06: Counting

clc;
clear;

n=2 //no of employees
r=12 //no of office rooms
sanchez=12
patel=11
sol=sanchez*patel

//product rule
mprintf("Total no of ways to assign offices to these employees is %d",sol)