diff options
Diffstat (limited to '1553/CH24/EX24.4/24Ex4.sce')
-rw-r--r-- | 1553/CH24/EX24.4/24Ex4.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH24/EX24.4/24Ex4.sce b/1553/CH24/EX24.4/24Ex4.sce new file mode 100644 index 000000000..55a12668e --- /dev/null +++ b/1553/CH24/EX24.4/24Ex4.sce @@ -0,0 +1,10 @@ +//chapter 24 Ex 4
+
+clc;
+clear;
+diagonal=17;
+perimeter=46;
+//perimeter=2(l+b), area=l*b, diagonal^2=l^2+b^2 using hypotenus
+//using above conditions, the equation diagonal^2+2l*b=(perimeter/2)^2
+area=((perimeter/2)^2-diagonal^2)/2;
+mprintf("The area of rectangle is %d square cm",area);
|