Hi there! The following tutorial will introduce you to one of the most common problems encountered in programming subjects. Later on, I will provide set of activities and quizzes for you to practice on to improve your programming skills.
Area solver for shapes is just one of the exercises given by most programming instructors. Some other exercises are the following:
An isosceles triangle is a triangle with two (2) equal sides. To be able to solve for the area of an isosceles triangle, you need to used the following formula:
Formula AREA OF ISOSCELES TRIANGLE
A = area of an isosceles triangle
b = base of the triangle
h = height of the triangle
or you can also used the formula A=1/2 * bh
Try the Isosceles Triangle Area Solver in PHP Live Here!
PHP Code AREA OF ISOSCELES TRIANGLE
<?php
$base=5;
$height=8;
$area=$base * $height/2;
echo $area;
?>
On the code above, the base is given the value of 5 and 8 for the height of the isosceles triangle.
Output AREA OF ISOSCELES TRIANGLE
20You can also visit other post related to solving for the area of an object. php ellipse area, php square area, php triangle area.
Thank you for visiting and hope this helps you. Feel free to leave a comment below for any questions. I got some other articles related to php and mysql here in my blog. Watch out for more upcoming tutorials related to blogging and programming. Good day! ^_^
No comments:
Post a Comment