blob: 186380d547229ed3d3af3a0d4aab8486d5876210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//chapter 24 Ex 8
clc;
clear;
close;
peri1=40; peri2=32;
side1=peri1/4; //side=perimeter/number of sides
side2=peri2/4;
area3=side1^2-side2^2; //given
side3=sqrt(area3);
peri3=side3*4;
mprintf("The perimeter of 3rd square is %d cm",peri3);
|