Tux Education Our New Education Channel Please Share And Subscribe It...

/* Find Area Of Right Angled Triangle */



// Compiler : Dev-C++ 4.9.9.2

#include<stdio.h>

int main()
{
    float h,w;
    float area;

    printf("Height : ");
    scanf("%f",&h);
    printf("\n\nWidth : ");
    scanf("%f",&w);

    area = 0.5 * h * w;

    printf("\n\n\nArea of Right Angled Triangle Is: %.3f",area);
 
    getch();
    return 0;
}


Post a Comment