summaryrefslogtreecommitdiff
path: root/1553/CH24/EX24.15/24Ex15.sce
blob: 59d03d3851240f6af1a2dba46358326d44adc5d2 (plain)
1
2
3
4
5
6
7
8
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);