I know this program only takes few lines.
I don't now how to out put the text to print every other letter
for example: shsofwbanrqeiyzobu
output: h o w a r e y o u
int main()
{string k;
cout << "eneter a text" << endl;
getline(cin,k);
for(int index =1; index <=(int)str.length(); index+=2)
{
}
any help is appreciated