diff options
Diffstat (limited to '1553/CH24/EX24.23')
-rw-r--r-- | 1553/CH24/EX24.23/24Ex23.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1553/CH24/EX24.23/24Ex23.sce b/1553/CH24/EX24.23/24Ex23.sce new file mode 100644 index 000000000..2722e5180 --- /dev/null +++ b/1553/CH24/EX24.23/24Ex23.sce @@ -0,0 +1,16 @@ +//Chapter 24 Ex 23
+
+clc;
+clear;
+close;
+// consider two parallel sides of trapezium as a and b
+a=poly(0,'a');
+b=(a-4); //from given condition 1
+b=(50-a); //from given condition 2
+for a=1:99
+ if (a-4)==(50-a) then
+ break;
+ end
+end
+b=a-4;
+mprintf("The parallel sides of trapezium are %d cm and %d cm",a,b);
\ No newline at end of file |