i get my code to print columns and row at the number i enter at prompt put the program never breaks the loop. What am I doing wrong??
Code:#include <stdio.h> /* function main begins program execution */ int main() { int row = 0; /* initialize row */ int column; /* define column */ printf( "Enter a number of row to be printed\n" ); scanf ( "%d", &row ); while ( row >= 1 ) { /* loop until row < 1 */ column = 1; /* set column to 1 as interation begins */ while ( column <= row ) { /* loop 10 times */ printf( "%s", row ? "*": "*" ); /* output */ column++; /* increment column */ } /* end inner while */ printf( "\n" ); /* begin new output line */ } /* end outer while */ return 0; /* indicate program ended successfully */ } /* end function main */