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

int main() {
    string text1, text2;

    cout << "Podaj pierwszy tekst: ";
    getline(cin, text1);
    cout << "Podaj drugi tekst: ";
    getline(cin, text2);

    // Porównanie tekstów
    if (text1 == text2) {
        cout << "Teksty są identyczne." << endl;
    } else {
        cout << "Teksty są różne." << 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: