summaryrefslogtreecommitdiff
path: root/3809/CH26/EX26.1/EX26_1.sce
blob: 93f321c2c525ba48f16f7c62d31221da97197f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Chapter 26, Example 26.1

clc
//Initialisation
n=24                            //no of bits


//Calculation
ad=2**n                        //no of locations


//Results
printf("No of Locations = %d ",ad)