blob: a52d213782cb96c942b2760d5dd18365a170819f (
plain)
1
2
3
4
5
6
7
8
9
|
//Chapter 24 Ex5
clc;
clear;
close;
//consider breadht=x and length=2x as given. Thus solving statement we get following equation.
//(2*x-5)(x+5)-2*x*x=75 and solving it we get
x=(75+25)/5;
mprintf("The length of rectangle is %d cm.",x);
|