Area of a triangle
Submissions: 5355   Accuracy:

18.14%

  Difficulty: Basic   Marks: 1

Find the area of a triangle with all its three sides given as a,b and c. 

Input:
The first line of input contains an integer T denoting the number of test cases. Each test case contains
three space-separated integers a,b and c.

Output:
Output the area of the triangle answer with a precision of 6 decimal places.The area is to be printed as 0.000000 if the triangle does not exist.

Constraints:
1<=t<=200
1<=a,b,c <= 100

Example:
Input:

2
2 2 3
3 4 5

Output:
1.984313
6.000000

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Shashwat Jain
Author: shashwat jain


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.