Home » PHP Area of Triangle Program

PHP Area of Triangle Program

by Online Tutorials Library

Area of Triangle

Area of a triangle is calculated by the following Mathematical formula,


Area of Triangle in PHP

Program to calculate area of triangle with base as 10 and height as 15 is shown.

Example:

Output:

PHP Area of triangle 1


Area of Triangle with Form in PHP

Program to calculate area of triangle by inserting values in the form is shown.

Example:

Output:

PHP Area of triangle 2

You may also like