Question: Description You are given ' n ' inangles and their sides a , b and c . Print them in the same style but sorted

Description
You are given 'n' inangles and their sides a,b and c. Print them in the same style but sorted by their aress from the smallest one to the largest one. It is guaranteed that all the areas are different. The best way to calculate a rees of a criangle with sides a,b and c is by using the Heron's formula: s=sgn(p**(p-i)**(p-b)**(p-c))
where
p=(a+b+c)2
Input Format
(1) The first ine of each lest file contains a single integer 'n'. Then,'n' lines foll ow with three spaceseparaled integers r,b and c
3
172425
51213
345
2
Constraints
1c=n100
3,tab,cs=70
Description You are given ' n ' inangles and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!