Level 1: Triangle perimeter and area
mission details
The lengths of the three sides a, b, and c of the input triangle, calculate and output the perimeter and area of the triangle in sequence, and the results are strictly reserved to 2 decimal places. The data of the test case guarantees that the data of the three sides of the triangle can form a triangle. The formula for calculating the area of a triangle:
where s=(a+b+c)/2.
input format
Enter 3 floating-point numbers in three lines, representing the lengths of the three sides of the triangle
output format
Circumference = xx
Area = xx
example
Input :
3
4
5
Output:
Circumference = 12.00
area = 6.00
the code
import math
a = eval(