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