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

1.984313

6.000000

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.

cs_abhi | 102 |

PiyushPandey4 | 100 |

codefundo | 95 |

kya_bolti_public | 93 |

masterishaan19 | 74 |

PiyushPandey4 | 916 |

john_wick | 765 |

ASWATHAMA | 565 |

UsfShilpa | 556 |

akhyasharma01 | 547 |

blackshadows | 5362 |

Ibrahim Nash | 5242 |

akhayrutdinov | 5111 |

mb1973 | 4929 |

Quandray | 4598 |

Login to report an issue on this page.