Select Page

Inverted Pyramid using Star(*) Symbol

int main() { int r,c,n,m; printf("Enter row size:"); scanf("%d",&n); printf("Enter column size:"); scanf("%d",&m); for(r=1; r<=n; r++) { for(c=1; c<=m; c++) { if(c>=r && c<=m+1-r) printf("*"); else printf(" "); } printf("\n"); } return 0;...

read more

Categories