Write a program to input height and base of a triangle and calculate its area.
Answers
Answered by
0
Explanation:
Input base of the triangle. Store in some variable say base .
Input height of the triangle. Store in some variable say height .
Use triangle area formula to calculate area i.e. area = (base * height) / 2 .
Print the resultant value of area
Answered by
2
Answer:
Input base of the triangle. Store in some variable say base .
Input height of the triangle. Store in some variable say height .
Use triangle area formula to calculate area i.e. area = (base * height) / 2 .
Print the resultant value of area .
Similar questions