#include <stdio.h>
int main ()
{
/* variable definition: */
float base, height, area;
/* Prompt user for base */
printf("Enter the base of the triangle: \n"); // Input the base
/* Prompt user for height */
printf("Enter the height of the triangle: \n"); // Input the height
// Calculate the Area
area= 0.5 * (base * height);
// Print the result
printf("Area is : %f\n", area
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluICgpCnsKLyogdmFyaWFibGUgZGVmaW5pdGlvbjogKi8KZmxvYXQgYmFzZSwgaGVpZ2h0LCBhcmVhOwovKiBQcm9tcHQgdXNlciBmb3IgYmFzZSAqLwpwcmludGYoIkVudGVyIHRoZSBiYXNlIG9mIHRoZSB0cmlhbmdsZTogXG4iKTsKLy8gSW5wdXQgdGhlIGJhc2UKc2NhbmYoIjEwLjEiLCAmYmFzZSk7Ci8qIFByb21wdCB1c2VyIGZvciBoZWlnaHQgKi8KcHJpbnRmKCJFbnRlciB0aGUgaGVpZ2h0IG9mIHRoZSB0cmlhbmdsZTogXG4iKTsKLy8gSW5wdXQgdGhlIGhlaWdodApzY2FuZigiMTIuMiIsICZoZWlnaHQpOwovLyBDYWxjdWxhdGUgdGhlIEFyZWEKYXJlYT0gMC41ICogKGJhc2UgKiBoZWlnaHQpOwovLyBQcmludCB0aGUgcmVzdWx0CnByaW50ZigiQXJlYSBpcyA6ICVmXG4iLCBhcmVhKTsKcmV0dXJuIDA7Cn0=