C Program To Compute The Area Of An Isosceles Triangle

Skip to content HomeC Program to compute the area of an isosceles triangle #PROGRAMOLOGY is a student interest site providing best possible source codes in different programming languages .... CURRENTLY we are working on C PROGRAMMING in addition we are thinking about SCRATCH as well //DO SUGGEST PLEASE.. GRAB AUTHOR ON https://www.fiverr.com/am10shiekh //kindly work on inverted commas in program if you are facing any error to get bug free result //HAPPY PROGRAMMING #include<stdio.h> #include<math.h> int main() { int a, b, c; float area, s; printf("Enter the sides of a triangle:\n"); scanf("%d%d%d", &a, &b, &c); if ((a + b > c && a + c > b && b + c > a) && (a > 0 && b > 0 && c > 0)) { if (a == b || b == c || a == c) { s = (a + b + c) / 2.0; area = sqrt((s * (s - a) * (s - b) * (s - c))); printf("\nArea of an isosceles triangle is: %2f\n", area); } else { printf("\nTriangle is not an isosceles "); } } else { printf("\n Triangle formation not possible\n"); } return 0; }

Be The Next To Share

  • Tweet
  • More
  • Reddit
  • Share on Tumblr
  • Pocket

Related

Post navigation c Program to classify the triangle as equilateral, isosceles and scalene C Program To Find The Biggest (Largest) Of 3 Numbers

2 thoughts on “C Program to compute the area of an isosceles triangle

  1. […] C Program to compute the area of an isosceles triangle […]

    LikeLike

    Reply
  2. […] C Program to compute the area of an isosceles triangle […]

    LikeLike

    Reply

Leave a comment Cancel reply

Δ

Search Bar Search for: C ProgrammingC++ ProgrammingLearn Programming Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy
  • Comment
  • Subscribe Subscribed
    • PROGRAMOLOGY
    • Join 42 other subscribers Sign me up
    • Already have a WordPress.com account? Log in now.
    • PROGRAMOLOGY
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.comGet started

Tag » Area Of Isosceles Triangle Code In C