Skip to content
Snippets Groups Projects
Commit 4179f055 authored by PRANAV VIKRAMAN's avatar PRANAV VIKRAMAN
Browse files

Left angled pyramid

parent f4f6db41
No related branches found
No related tags found
No related merge requests found
/*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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment