12,632,234 members (28,989 online)

Email

Password

Sign in using

how to find area of a triangle when its three sides are given using dot net

revu0089277

25.9 million results. Wow.... GOOGLE[^] is your friend and you should visit him often. What you need to do is find a link in the list I've provided which gives you the algorithm and then convert that into the code language of your choice. Happy hunting.

Comments

It is giving even more than that. +5! :)

Thanks...

You should try this:

--Amit

```
//Suppose your three sides are a, b & c
private double area(double a, double b, double c){
double s = (a + b + c) / 2;
return Math.Sqrt(s * (s - a) * (s - b) * (s - c));
}
```

--Amit

Comments

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject,
503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada
+1 416-849-8900 x 100