From 4179f055481ce762000bc6fcac32909b376d5750 Mon Sep 17 00:00:00 2001 From: Pranav <pranavvikraman30@gmail.com> Date: Thu, 20 Mar 2025 19:43:34 +0530 Subject: [PATCH] Left angled pyramid --- left_angled_pyramid.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 left_angled_pyramid.c diff --git a/left_angled_pyramid.c b/left_angled_pyramid.c new file mode 100644 index 0000000..43f2ac5 --- /dev/null +++ b/left_angled_pyramid.c @@ -0,0 +1,20 @@ +/*Left angled pyramid +* +** +*** +**** +***** */ +#include <stdio.h> +int main(){ + int n, m, i, j; + printf("Enter the value of n: "); + scanf("%d", &n); + m=n; + for(i=1; i<=n; i++){ + for(j=1; j<=i; j++){ + printf("*"); + } + printf("\n"); + } + return 0; +} -- GitLab