#include <iostream>
using namespace std;

int main() {
    int bisiesto;
    cout << "Introduce un año: ";
    cin >> bisiesto;

    if ((bisiesto % 4 == 0 && bisiesto % 100 != 0) || (bisiesto % 400 == 0)) {
        cout << "El año es bisiesto " << endl;
    } else {
        cout << "El año no es bisiesto " << endl;
    }
    return 0;
}

Embed on website

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