0
#include <iostream>
using namespace std;

int main () 
{
    int a,b;

    for (a=1; a<=10; a++)
    {
        for (b=1; b<=10-a; b++)
        cout<<"*";

        for(b=10; b<=a; b++) {
                  for (b=1; b<=a; b++)
                  cout<<"*";
                  }
        cout<<endl;
        }
        system("pause");
        }

Edited by Nick Evan: Fixed formatting

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by VernonDozier
0

One, you should know how to use code tags by now. Use them. Read the pinned threads.

Two, you already have a thread on this. Shall we answer here or there?

Three, what's the question? What are you trying to draw? You have code, but no explanation and no statement of the goal.

This thread could be of some use, I would imagine, but I'm not sure, because again, you haven't said here what you want to accomplish.

http://www.daniweb.com/forums/thread237061.html

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.