CCCPaste

Untitled

    #include 

    using namespace std;

    int main() {
        int broj1, broj2;
        cin >> broj1 >> broj2;
        
        int sredna_cifra1 = (broj1 / 10) % 10;
        int sredna_cifra2 = (broj2 / 10) % 10;
        
        if(sredna_cifra1 == sredna_cifra2) {
            cout << "DA" << endl;
        }
        else {
            cout << "NE" << endl;
        }
        return 0;
    }