Write a program to find the area of a triangle. (formula area =1/2 bh)
Answers
Answered by
6
Explanation:
#include<stdio.h>
int main()
{
int b,h;
float area;
scanf("%d%d",&b,&h);
area=1/2*b*h;
printf("Area of triangle is %f",area);
return 0;
}
Similar questions