Arrow head patterns using while loop

this is my coding. I m just stuck when I make the upArrow head patterns using while loops. But i don't get the tail of the arrow from this looping.

Any tips please



int main()
{
int i,j,rows=12,N=1;
cout<<"Enter the number of rows: \n";
//cin>>rows;
cout<<"\n";

i=1;
while(i<=rows ){ //parent while loop
j=i;
while(j<=rows){
cout<<" ";//print space
j++;
}
j=1;
while( j<=2*i-1){
cout<<"*";//print star

j++;
}
j=2*i;
while(j<=2*rows-1){
cout<<" ";//print space
j++;
}
j=2*i;
while(j<=rows+1)
{
cout << " ";
j++;
}
if(i == N)
{ j=1;
while( j<=(N * 2 - 1))
{
cout << "+";
j++;
}
}
cout<<"\n";//move to next line
i++;





hein harry thu wrote:
Any tips please


Just LOOK at the result of your post!

(1) USE CODE TAGS

(2) Provide complete, compileable code.

(3) State clearly and carefully exactly what you are trying to achieve.


After GUESSING at the headers and GUESSING how many } to add at the end I finally managed to produce from your code:
Enter the number of rows: 

            *                                  +
           ***                              
          *****                          
         *******                      
        *********                  
       ***********              
      *************          
     ***************        
    *****************      
   *******************    
  *********************  
 ***********************


Now, what exactly do you want to do?
Topic archived. No new replies allowed.