Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 28th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 363  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. */