Computer Science, asked by jkhandelwal, 8 days ago

Write a program to input height and base of a triangle and calculate its area.

Answers

Answered by aryapillai124
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 xXItzSujithaXx34
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