#include <iostream>
#include <string>
using namespace std;
int main()
{
string word;
cin >> word;
cout << "word: " << word << endl;
for (int i = 0; i < word.size(); i += 2)
{
cout << word[i];
}
cout << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: