#include #include using namespace std; void writeForwards(string str, int size){ if( size < str.length() ){ cout << str[ size ] << endl; writeForwards(str, size+1); } } int main(){ string str; cout << "Enter a string :> "; cin >> str; writeForwards(str, 0); return 0; }