#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");
        }

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.