12,632,234 members (28,989 online)
Rate this:
See more:
how to find area of a triangle when its three sides are given using dot net
Posted 3-Oct-12 4:30am

Rate this:

## Solution 1

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.
_Amy 3-Oct-12 9:44am

It is giving even more than that. +5! :)
Marcus Kramer 3-Oct-12 9:51am

Thanks...
Rate this:

## Solution 2

You should try this:
```//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
Marcus Kramer 3-Oct-12 9:51am

Please don't just provide a code solution to someone asking a blatant homework question. What will the OP learn from that. What we want to do is show them how to figure out the answer. By just giving them something to copy/paste they are not learning anything. (I haven't voted on your answer as it is correct)

Top Experts
Last 24hrsThis month
 OriginalGriff 250 Richard MacCutchan 118 Peter Leow 95 Admire Mhlaba 75 ppolymorphe 60
 OriginalGriff 2,004 ppolymorphe 1,242 Peter Leow 804 John Simmons / outlaw programmer 665 CPallini 581