diff --git a/Half pattern of * b/Half pattern of * new file mode 100644 index 00000000..70a1a944 --- /dev/null +++ b/Half pattern of * @@ -0,0 +1,13 @@ +#include +int main() { + int i, j, rows; + printf("Enter the number of rows: "); + scanf("%d", &rows); + for (i = 1; i <= rows; ++i) { + for (j = 1; j <= i; ++j) { + printf("* "); + } + printf("\n"); + } + return 0; +}