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

clc;
clear;

letters=26 //Total no of letters in the english alphabet
post=100 //Total positive no.s not beyond 100
sol=letters*post

//number of chairs to be labelled with an alphabet and an integer using product rule
mprintf("Total number of chairs that can be labelled with an alphabet and an integer is %d",sol)