#include <iostream>
#include <string>
using namespace std;
int main() {
string x;
cout<< "Wpisz na wejściu, jak masz na imię" <<endl;
getline(cin,x);
cout <<x<<endl;
cout<<"Twoje imię składa się z "<<x.size()<< " liter"<<endl;
cout<<x[2]<<endl;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: