You are viewing a single comment's thread. Return to all comments →
void staircase(int n) { int i,j; for(i=n;i>0;i--) { for(j=1;j<=n;j++) { if(j>=i) { printf("#"); } else printf(" ");
} printf("\n");
}
} thankx man
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
void staircase(int n) { int i,j; for(i=n;i>0;i--) { for(j=1;j<=n;j++) { if(j>=i) { printf("#"); } else printf(" ");
}
} thankx man