codegamy_logo

CODELAB

3. Calculate the Area of a Triangle

Given the base and height of a triangle, calculate its area using the formula Area = 0.5 × base × height.

Input Format

Two space-separated integers: base and height.

Output Format

A single floating-point number representing the area of the triangle.

Sample Input

5 10

Sample Output

25.0

Constraints:

  • 1 ≤ base, height ≤ 103
Python
Dark
14

Custom Input

Output

Custom Input

Output

3. Calculate the Area of a Triangle

Given the base and height of a triangle, calculate its area using the formula Area = 0.5 × base × height.

Input Format

Two space-separated integers: base and height.

Output Format

A single floating-point number representing the area of the triangle.

Sample Input

5 10

Sample Output

25.0

Constraints:

  • 1 ≤ base, height ≤ 103
Python
Dark
14

Custom Input

Output

Custom Input

Output

2025 © CodeLab(PSTU) | All Rights Reserved.

Developed by Hasib-17❤️