Today we will discuss about how to find out area of triangle in c, C program to find area of triangle.


Write a C Program to find Area of Triangle : 



#incule <stdio.h>
#incule <conio.h>
void main()
{
int height, base;  //give any two names to variable
float area; // area may comes in fraction
printf("\n enter height & base of triangle");
scanf("%d%d", &height, &base);
area=(1/2)*height*base ;
Printf(" Area of triangle is = %f, area0;
getch();
}




Post a Comment

Previous Post Next Post