fork(3) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. char *arrow[] = {
  6. " * ",
  7. " *** ",
  8. " ***** ",
  9. "*******",
  10. " *** ",
  11. " *** ",
  12. };
  13.  
  14. for (int r = 0 ; r != 6 ; r++) {
  15. for (int i = 0 ; i != 3 ; i++) {
  16. printf("%s", arrow[r]);
  17. }
  18. printf("\n");
  19. }
  20.  
  21.  
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
   *      *      *   
  ***    ***    ***  
 *****  *****  ***** 
*********************
  ***    ***    ***  
  ***    ***    ***