C Program to Find Area of Triangle

 #include<stdio.h>

void main()

{

    float b,h;

    printf("Enter base and height: ");

    scanf("%f %f",&b,&h);

    printf("Area = %f",0.5*b*h);

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices