#include <iostream>
#include <cmath>
using namespace std;

int main() {
    double a, b, c;
    cout<<"PROGRAMA PARA SABER SI UN TRIANGULO ES RECTANGULO"<<endl;
    cout << "Ingrese los tres lados del triangulo (de menor a mayor): ";
    cin >> a >> b >> c;

    // Verificar si es triangulo rectangulo
    if (fabs((a * a + b * b) - (c * c)) < 1e-6) {
        cout << "El triangulo es rectangulo." << endl;
    } else {
        cout << "El triangulo NO es rectangulo." << endl;
    }

    return 0;
}

Embed on website

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