here is my work so far :
# include <stdio.h> main() { int N,row, column; printf(“Enter the triangle-drawing value n:”); scanf(“%d”,&N); for (row=1; row<=N, row++) { for ( column = 1 ; column <= row ; column++ ) { printf( “*” ); } for (space=0; space<=N-1; space--) { printf(" "); } printf(“\n”); } }
the output is supposed to look like this when u enter n=5
----*
---***
--*****
-*******
*********
of course just the triangle ignoring the "-".but when i run the program it doesn't display that way and i still dont know why.