#include <stdio.h>

int main(void)
{
//  Local Declarations
    int numRows;
    int outerCount;
   
//  Statements
    printf("How many rows do you want to have?");
    scanf("%d", &numRows);
   
    for(outerCount = 1; outerCount <= numRows; outerCount++)
    {
        int innerCount;
        for(innerCount=1; innerCount<=numRows; innerCount++)
        if(outerCount<=innerCount)
           if(outerCount>=innerCount)
               printf("*");
           else
               printf("**");
               
    } // for
   
    system("pause");
    return 0;
}// main