Program to find area of triangle when height and base are given

0
147
#include<stdio.h>
#include<conio.h>
void main()
{
    float h,b,a;          /*h for height, b for base and a for area*/
    clrscr();
    printf(“enter height and base of triangle\n”);
    scanf(“%f%f”, &h,&b);
    a=h*b/2;
    printf(“\n area of triangle with height %.2 base %.2f is %.3f",h,b,a);
    getch();
}

   Output:
   enter height and base of triangle
   4
   3
   area of triangle with height 4.00 base 3.00 is 6.000
program to find area of a triangle program to find area of any triangle c program to find area of a triangle write a program to find area of triangle a c program to find area of triangle create a program to find area of triangle write a basic program to find the area of triangle basic program to find the area of a triangle c program to find area of triangle using base and height program to find area of triangle in c Program to find area of triangle when height and base are given Program to find area of triangle when height and base are given estudyhelper Program to find area of triangle when height and base are given estudyhelper.xyz

LEAVE A REPLY

Please enter your comment!
Please enter your name here