summaryrefslogtreecommitdiff
path: root/1553/CH24/EX24.12/24Ex12.sce
blob: 06aab367a6202ffb6c33d03bdb3af6ac84dd0bad (plain)
1
2
3
4
5
6
7
8
9
10
11
//Chapter 24 Ex12

clc;
clear;
close;
side=1;   //assuming side of square as 1
area=side^2;
nside=(1+(25/100))*side;
narea=(nside)^2;
increase=((narea-area)/area)*100;
mprintf("The percentage change in area is %.2f percent",increase);