function pentagonArea(side: number, apothem: number): number {
return 5.0 * (side * apothem) / 2.0;
}
const side = 5.0;
const apothem = 3.0;
const area: number = pentagonArea(side, apothem);
console.log(`Area = ${area.toFixed(2)}`);
/*
run:
Area = 37.50
*/