Advertisement
limondew

area of the tringle

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