From 25839d0c638a1be1c842f1bf3038b393fed62f1f Mon Sep 17 00:00:00 2001 From: Soumi Chatterjee <60042960+soumichatterjee@users.noreply.github.com> Date: Fri, 28 Oct 2022 13:39:53 +0530 Subject: [PATCH] Create pat.c --- pat.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pat.c diff --git a/pat.c b/pat.c new file mode 100644 index 0000000..70a1a94 --- /dev/null +++ b/pat.c @@ -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; +}