Program to print area of Tringle in c- language
#include<stdio.h>
int main()
{
float area,base,height;
printf("Enter base \n");
scanf("%f",&base);
printf("Enter height \n");
scanf("%f",&height);
area=0.5*base*height;
printf("Area of triangle=%f",area);
}
OUTPUT
Enter base
3
Enter height
4
Area of triangle=6.000000
This program is just provide you a way for solve difficult program coming soon.After solving this problem you can apply all the formula for area related to triangle or other.
If you like this program then you can share it and for any issues you can direct contact with me from
Home Page.
For regular updates you can also follow my site.
Comments
Post a Comment