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