#include <stdio.h>
int main()
{
float base, height, area;
printf("Enter base of the triangle: "); printf("Enter height of the triangle: ");
area = (base * height) / 2;
printf("Area of the triangle = %.2f sq. units", area
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKICAgIGZsb2F0IGJhc2UsIGhlaWdodCwgYXJlYTsKCiAgICBwcmludGYoIkVudGVyIGJhc2Ugb2YgdGhlIHRyaWFuZ2xlOiAiKTsKICAgIHNjYW5mKCIlZiIsICZiYXNlKTsKICAgIHByaW50ZigiRW50ZXIgaGVpZ2h0IG9mIHRoZSB0cmlhbmdsZTogIik7CiAgICBzY2FuZigiJWYiLCAmaGVpZ2h0KTsKCiAgICAKICAgIGFyZWEgPSAoYmFzZSAqIGhlaWdodCkgLyAyOwoKICAgCiAgICBwcmludGYoIkFyZWEgb2YgdGhlIHRyaWFuZ2xlID0gJS4yZiBzcS4gdW5pdHMiLCBhcmVhKTsKCiAgICByZXR1cm4gMDsKfQ==