-
-
Save programmingfaster0226/703c1f2b699545d2fa7dc5e8db79b799 to your computer and use it in GitHub Desktop.
programmingfaster.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
void main() | |
{ | |
float a,b,c,s,area; | |
printf("enter three sides of triangle a,b,c:"); | |
scanf("%f%f%f",&a,&b,&c); | |
s=(a+b+c)/2; | |
area=sqrt(s*(s-a)*(s-b)*(s-c)); | |
printf("the area of triangle is :%.2f",area); | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment