// WAP to enter three sides of triangle and find area. #include<stdio.h> #include<conio.h> #include<math.h> void main() { float a,b,c,s,a=0; clrscr(); printf("Enter three length of triangle:\n"); scanf("%f%f%f",&a,&b,&c); s=(a+b+c)/2; a=sqrt(s*(s-a)*(s-b)*(s-c)); printf("Area of triangle is %f",a); getch(); }
Take Pure Information, Always Original Content
Comments
Post a Comment