fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. scanf("%d",&n);
  6. for (int i = n; i>0; --i) {
  7. int j = i;
  8. while (j) {
  9. printf("*");
  10. --j;
  11. }
  12. printf("\n");
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
6
stdout
******
*****
****
***
**
*