Computer Science, asked by sammy4993, 10 months ago

Write a c program to find area of a triangle when we know the lengths of all three of its sides.

Answers

Answered by ronak5649
1

Answer:

C program to find area of a triangle using a function

#include<stdio.h>

#include<math.h>

double area_of_triangle(double, double, double);

int main()

{

double a, b, c, area;

printf("Enter the lengths of sides of a triangle\n");

scanf("%lf%lf%lf", &a, &b, &c);

Answered by neelrambhia03
0

Answer:

#include<stdio.h>

void main()

{

int a,b,c;

//Add the values to the sides

double s,area;

s = a+b+c/3;

area = math.sqrt((s-a)(s-b)s-c))

printf("Area = %d", area);

}

Hope this helps you.

Similar questions