Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c;
- float area,s;
- printf("Enter three side of tringle : ");
- scanf("%d %d %d",&a,&b,&c);
- s=(a+b+c)/2;
- s=s*(s-a)*(s-b)*(s-c);
- area=sqrt(s);
- printf("area of the tringle is=%f",area);
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement