#include <iostream>
using namespace std;
int main() {
    float base, altura;
    float area;
    cout<<"ingrese la base del triangulo:";
    cin>> base;



    cout<<"ingresela altura del triangulo:";
    cin>> altura;
    area=(base*altura)/2;
    cout<<"el area del triangulo es:", area;
    return 0;
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: