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);