Advertisement
Guest User

Untitled

a guest
Sep 28th, 2012
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(){
  4.  
  5. char* array[]={
  6. " *",
  7. " **",
  8. " ***",
  9. " ****",
  10. " ***",
  11. " **",
  12. " *"};
  13.  
  14. for(int i=0; i< 7; i++){
  15. printf("%s\n",array[i]);
  16.  
  17. }
  18. return 0;
  19. }
  20.  
  21. // OUTPUT
  22. /*
  23. $ clang redditChallenge.c
  24. $ ./a.out
  25. *
  26. **
  27. ***
  28. ****
  29. ***
  30. **
  31. *
  32. $
  33. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement