//this program demonstrates the range-based for loop.
#include <iostream>
#include <string>
using namespace std;

int main()
{
	string planets[] = { "Mercury", "Venus", "Earth", "Mars",
							 "Jupiter", "Saturn", "Uranus",
							 "Neptune", "Pluto (a dwarf planet)" };
	
	cout << "Here are the planets:\n";
	
	for (auto val : planets)
		cout << val << endl;
	return 0;
}
