C Program to Find Area of a Right Angled Triangle

C Program to Find Area of a Right Angled Triangle

#include <stdio.h>
     
    int main()

    {

        float height, width;

        float area;

        printf("Enter height and width of the given triangle:\n ");

        scanf("%f%f", &height, &width);

        area = 0.5 * height * width;

        printf("Area of right angled triangle is: %.3f\n", area);

        return 0;

    }

Share this post


Comments (0)

  • Be first to comment

Leave a comment

or to Comment

Contact Us

  • Address: # 650 Narsi Village Sector 32 Urban Estate Karnal-132001 Haryana, India

  • Phone:(+91) 97289-77666   Email: codethor84@gmail.com


Follow Us