summaryrefslogtreecommitdiff
path: root/1553/CH24/EX24.15/24Ex15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH24/EX24.15/24Ex15.sce')
-rw-r--r--1553/CH24/EX24.15/24Ex15.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH24/EX24.15/24Ex15.sce b/1553/CH24/EX24.15/24Ex15.sce
new file mode 100644
index 000000000..59d03d385
--- /dev/null
+++ b/1553/CH24/EX24.15/24Ex15.sce
@@ -0,0 +1,9 @@
+//Chapter 24 Ex 15
+
+clc;
+clear;
+close;
+a=13; b=14; c=15;
+s=(a+b+c)/2;
+area=sqrt(s*(s-a)*(s-b)*(s-c));
+mprintf("The area of triangle is %d sq.cm",area);