82
Area of a Rectangle
Area of a rectangle is calculated by the mathematical formula,
Logic:
- Take two variables.
- Multiply both of them.
Area of Rectangle in PHP
Program to calculate area of rectangle with length as 14 and width as 12 is shown.
Example:
Output:
Area of Rectangle with Form in PHP
Program to calculate area of rectangle by inserting values in the form is shown.
Example:
Output:
Next TopicLeap Year Program