Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Create CYx44s.php #1473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Ai4h8L/CYx44s.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
$base = 5; // Can be replaced with desired value
$height = 8; // Can be replaced with desired value

// formula to calculate the area
$area = ($base * $height) / 2;
// output line to be seen by user for the area of triangle with given base and height
echo "The area of the triangle with base $base and height $height is: $area";
?>