C++, Plotting points using Nested For Loops : wondering if someone can help me. I'm relatively new to C++ and we have been given this task to do:

**Write a C++ program which asks the user for a number n between 1 and 10.  The program should then print out n lines.  Each should consist of a number of stars of the same number as the current line number. For example:
Please enter a number:   5

*

**

***

****

*****     



The problem I am having is that when I use the code I've written it displays wrong.
[enter image description here][1]


  [1]: http://i.stack.imgur.com/pxTZL.png

The code I have right now reads like this:

    #include<iostream>

    using namespace std;

    int main() {

	int n;
	cout << "Please enter a number between 1 and 10:" << endl;
	cin >> n;


	for (int x = 0; x <= n; x++)
	{
			for (int y = 0; y <= n; y++) {
			cout << "*" ;
			}
		
		cout << "*" << endl;
		cin.get();
		
	}

	return 0;
    }


Any help would really be appreciated! Thanks a lot.