//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)