1#include <stdio.h>
2int main() {
3 int i, j, rows;
4 printf("Enter the number of rows: ");
5 scanf("%d", &rows);
6 for (i = 1; i <= rows; ++i) {
7 for (j = 1; j <= i; ++j) {
8 printf("* ");
9 }
10 printf("\n");
11 }
12 return 0;
13}
14