Answer:
Input: 0, 2, 4
Output: 3, -1, 1
Step-by-step explanation:
0-3= -3
2-3= -1
4-3= 1
For 3 sides to form a triangle two sides added together need to be greater then the 3rd side. You need to check all 3 combinations:
1. 11.5 + 10.5 = 22, 22> 6.1
11.5 + 6.1 = 17.6 17.6 > 10.5
10.5 + 6.1 = 16.6, 16.6 > 11.5
This one can make a triangle.
2. 9.5 + 3.5 > 4.5
9.5 + 4.5 > 3.5
4.5 + 3.5 < 9.5
Cannot make a triangle.
3. 8 + 6.7 > 1
6.7 + 1 < 8
Cannot make a triangle.
4. Can make a triangle
5. Can
6. Can
Answer:
Step-by-step explanation:
Answer: 2.88/1
Step-by-step explanation:
20% * 300 = 2 * (10% * 300) = 2*30 = 60