Create a square with nested loops

http://www.cplusplus.com/ico/forum_question.png
How Do I create a square with 10 asterix using nested loops?
I have no Idea
Should I use a counter or no?
#include <iostream>
using namespace std;

int main(){

for(int i=0;i<10;i++)
{

for(int i=0;i<10;i++)
{

cout<<"*";
}
cout<<end;
}
return 0;

}
it might work as i think =]
Topic archived. No new replies allowed.