Advertisement
ARNABCHAKRABORTTY

area tringle

Dec 14th, 2017
85
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 m,n,l;
  5.  float area,s;
  6. printf("Enter three side of tringle : ");
  7. scanf("%d %d %d",&m,&n,&l);
  8. s=(m+n+l)/2;
  9. s=s*(s-m)*(s-n)*(s-l);
  10. area=sqrt(s);
  11. printf("area of the tringle is=%f",area);
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement