//print a star pattern with 9 row and 9 column
#include <stdio.h>
int main ()
{
int row ,col;
for (row=1;row<=9;row++){
for (col=1;col<=row;col++){
printf ("*");
}
printf ("\n");
}
return 0;
}
output output output output output
*
**
***
****
*****
******
*******
********
*********
No comments:
Post a Comment