#include <stdio.h>
int main() {
// Declare variables to store user input
double base, height;
// Prompt the user to enter the base of the triangle
printf("Enter the base of the triangle: ");
scanf("%lf", &base);
// Prompt the user to enter the height of the triangle
printf("Enter the height of the triangle: ");
scanf("%lf", &height);
// Calculate the area of the triangle
double area = 0.5 * base * height;
// Display the result
printf("Area of the triangle: %lf\n", area);
return 0;
}