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

Right-angled pyramid

parent 4179f055
Branches master
No related tags found
No related merge requests found
/*Right 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<=m; j++){
printf("*");
}
m--;
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