From d2ca0e924141fccab46239642f88885afba2eb0c Mon Sep 17 00:00:00 2001 From: Praduman30642 <59205248+Praduman30642@users.noreply.github.com> Date: Mon, 31 Oct 2022 22:42:11 +0530 Subject: [PATCH] Create Half pattern of * --- c_programs/Half pattern of * | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 c_programs/Half pattern of * 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; +}