Advertisement
hackerbdweb

triangle

Dec 13th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.   int a,b,c;
  5.  float area,s;
  6. printf("Enter three side of tringle : ");
  7. scanf("%d %d %d",&a,&b,&c);
  8. s=(a+b+c)/2;
  9. s=s*(s-a)*(s-b)*(s-c);
  10. area=sqrt(s);
  11. printf("area of the tringle is=%f",area);
  12. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement