ok i have some code for a trapezoid but what code will make this work with specific height and base inputs? here's what i have:

Code:
for (row = 1; row <= height1+1; row++)
				{
					for (space = height1; space >= row; space--)
						printf(" ");
					for (col = 1; col <= (row * 2 - 1); col++)
					{    
						if((row*2-1)>=base/2+1) /* cuts off top of triangle */
							printf("*");
					}
					printf("\n");
				}
so that will make one but not for inputted base, if i want to make it for the inputted base how would i go about doing it?