Computer Science, asked by navyareddy21, 4 months ago

COCO
work in case of syntax/runtime error.
The version of GCC being used is 5.5.0.
Jackson, a math research student, is developing
an application on triangles in mensuration. For
the two triangles on the application's display,
with base and height given, the user must
identify the triangle with the largest area.
Jackson must now write an algorithm to find
the area of the larger triangle.
To find the area of a triangle with base and
height given, the following formula is used:
Area of a triangle = (base*height)/2.
Write an algorithm to find the area of the
largest triangle.
Input
The first line of the input consists of two space-
separated positive integers - base1,
height1, representing the base and height of
the first triangle.
The second line consists of two space-
separated positive integers - base2,
height2, representing the base and height of
the second triangle.
Output
Print a real number representing the area of
the largest triangle rounded up to 6 decimal
nlaces​

Answers

Answered by jahangeerali82
4

Answer:

Follow me and your answer is in Google mark me as a brilliant

Similar questions