#include <stdio.h>
int main()
{
int no_of_rows, row, column;
printf("enter the number of rows\n");
scanf("%d", &no_of_rows);
for (row = 1; row <= no_of_rows; row++)
{
for (column = 1; column <= row; column++)
{
printf("* ");
}
printf("\n");
}
return 0;
}
No comments:
Post a Comment