Skip to main content
Post Reopened by sergiol, Wheat Wizard
Post Closed as "Needs details or clarity" by rydwolf, caird coinheringaahing, user, lyxal, Stephen
added 139 characters in body
Source Link
rydwolf
  • 19.3k
  • 2
  • 90
  • 180

Given three sides of a triangle, print area of this triangle.

Test cases:

In: 2,3,42,3,4

Out: 2.904737509655562.90473750965556

In: 3,4,53,4,5

Out: 66

AssumeGiven the three side asides \$a\$,b \$b\$,c always a>0 and \$c\$,b>0 you can assume that \$a>0\$,c>0 \$b>0\$,a+b>c \$c>0\$,b+c>a \$a+b>c\$,c+a>b \$b+c>a\$, and \$c+a>b\$.

This is , shortest answer per language in bytes wins.

Given three sides of a triangle, print area of this triangle.

Test cases:

In: 2,3,4

Out: 2.90473750965556

In: 3,4,5

Out: 6

Assume the three side a,b,c always a>0,b>0,c>0,a+b>c,b+c>a,c+a>b.

Given three sides of a triangle, print area of this triangle.

Test cases:

In: 2,3,4

Out: 2.90473750965556

In: 3,4,5

Out: 6

Given the sides \$a\$, \$b\$, and \$c\$, you can assume that \$a>0\$, \$b>0\$, \$c>0\$, \$a+b>c\$, \$b+c>a\$, and \$c+a>b\$.

This is , shortest answer per language in bytes wins.

Tweeted twitter.com/#!/StackCodeGolf/status/317726398393483266
edited body
Source Link
Mr.Wizard
  • 2.6k
  • 18
  • 17

Given three sides of a triangle, print aeraarea of this triangle.

Test cases:

In: 2,3,4

Out: 2.90473750965556

In: 3,4,5

Out: 6

Assume the three side a,b,c always a>0,b>0,c>0,a+b>c,b+c>a,c+a>b.

Given three sides of a triangle, print aera of this triangle.

Test cases:

In: 2,3,4

Out: 2.90473750965556

In: 3,4,5

Out: 6

Assume the three side a,b,c always a>0,b>0,c>0,a+b>c,b+c>a,c+a>b.

Given three sides of a triangle, print area of this triangle.

Test cases:

In: 2,3,4

Out: 2.90473750965556

In: 3,4,5

Out: 6

Assume the three side a,b,c always a>0,b>0,c>0,a+b>c,b+c>a,c+a>b.

Source Link
chyanog
  • 1.3k
  • 9
  • 18

Triangle Area Side Side Side

Given three sides of a triangle, print aera of this triangle.

Test cases:

In: 2,3,4

Out: 2.90473750965556

In: 3,4,5

Out: 6

Assume the three side a,b,c always a>0,b>0,c>0,a+b>c,b+c>a,c+a>b.