c program to find area of right angled triangle










#include<stdio.h>
int main(){
    float height,length;
    float area;
    printf("Enter height of the right angle triangle: ");
    scanf("%f%",&height);
    printf("Enter length of the right angle triangle: ");
        scanf("%f%",&length);
    area = 0.5 * height * length;
    printf("Area of right angle triangle is : %f",area);
    return 0;
}





Alogrithm:
**




No comments: