diff --git a/c_programs/Half pattern of * b/c_programs/Half pattern of * new file mode 100644 index 0000000..70a1a94 --- /dev/null +++ b/c_programs/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; +}