id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

frew@mclean.com ttunit3bday1 > triangleArea
prev  |  next  |  chance

Return the area of the triangle with the three given sides using Heron's formula. https://en.wikipedia.org/wiki/Heron%27s_formula


triangleArea(4, 13, 15) → 24.0
triangleArea(1, 1, 1) → 0.4330127018922193
triangleArea(5, 7, 8) → 17.320508075688775

...Save, Compile, Run (ctrl-enter)

public double triangleArea(double a, double b, double c) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 150

Copyright Nick Parlante 2017 - privacy