1 2 3 4 5 6 7 8
//Chapter 24 Ex 10 clc; clear; close; dia=3.8; A=((dia)^2)/2; mprintf("The area od the square whose diagonal is given is %.2f sq.meter",A);