lol i do accept that my code is buggy im not in denial . here is admit "My Code Is Buggy".
thanks alot NeonBlack u just made my life easier with the reverse loop idea : here is my code after using it and after taking the advice of all the other programmers who are here :
Code:
#include <stdio.h>
#include <conio.h>
int main()
{
int N,row, column,space;
printf("Enter the triangle-drawing value n:");
scanf("%d",&N);
for (row=N-1;row>=0; row--)
{
for (space=0;space<=N-1-row;space++)
{
printf(" ");
}
for (column=1;column<=2*row+1;column++)
printf("*");
}
printf("\n");
}
getch();
}