summaryrefslogtreecommitdiff
path: root/1553/CH24/EX24.16/24Ex16.sce
blob: a44f483c15afa23190b8df0118a4bf0873ef7009 (plain)
1
2
3
4
5
6
7
8
9
//Chapter 24 Ex 16

clc;
clear;
close;
base=12; hypo=13;
h=sqrt((hypo)^2-(base)^2);
area=(1/2)*base*h;
mprintf("The area of a right angled triangle is %d sq.cm.",area);