#include <iostream>
#include <string>
#include<algorithm>
using namespace std;
int main() {
string tekst;
cout<<"Podaj napis: ";
getline(cin, tekst);
replace(tekst.begin(), tekst.end(), 'a', '@');
cout << "Po zamianie: " << tekst << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: