belongs to collection: Basic C Programs for Practice
To Find the Area Of Triangle we need to height and base . given formula show that Area = ( Height * Base )/2
#include<stdio.h> int main() { float b,h,area; printf("Enter Height and Base Of Triangle : "); scanf("%f %f",&h,&b); area = (h*b)/2; printf("Area of Triangle is: %f\n",area); return 0; }
Output:
Enter Height and Base Of Triangle : 5
8
Area of Triangle is: 20.000000
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Output:
Enter Height and Base Of Triangle : 5
8
Area of Triangle is: 20.000000
need an explanation for this answer? contact us directly to get an explanation for this answer