diff --git a/left_angled_pyramid.c b/left_angled_pyramid.c new file mode 100644 index 0000000000000000000000000000000000000000..43f2ac515a19336fb17cd99541b1df71e6db88af --- /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; +}