src/examples/03_module/04_for_ranged/for_ranged.cpp
void loop_string_w_index(const string &str) 
{
	for (int i = 0; i < str.length(); ++i) 
	{
		cout << str[i] << "\n";
	}
}
/*
Write code for loop_string_w_index that accepts a string parameter.
The function uses an indexed for loop to iterate and display the characters in the
string as follows:
for string test displays
t
e
s
t
*/
Write code for loop_string_w_index that accepts a string parameter.
The function uses an indexed for loop to iterate and display the characters in the
string as follows:
for string test displays
t
e
s
t
Write code for loop_string_w_index that accepts a string parameter . The function uses an indexed for loop to iterate and display the characters in the string as follows : for string test displays t e s t
void loop_string_w_index(const string &str) 
{
	for (int i = 0; i < str.length(); ++i) 
	{
		cout << str[i] << "\n";
	}
}
void loop_string_w_index ( const string & str ) { for ( int i = 0 ; i < str . length ( ) ; ++ i ) { cout << str [ i ] << " \n " ; } }
Write code for loop_string_w_index that accepts a string parameter.
Write code for loop_string_w_index that accepts a string parameter .