[ create a new paste ] login | about

Link: http://codepad.org/iJzpcY6n    [ raw code | output | fork ]

C, pasted on Nov 12:
1
2
3
4
5
6
7
#include <stdio.h> 
int main(void) { 
    int i=0; 
    while(i < 50) 
        printf("%*s*\n", i%6-((i%6-3)*(i%6>>2&1)<<1), ""), ++i; 
    return 0; 
}


Output:
*
 *
  *
   *
  *
 *
*
 *
  *
   *
  *
 *
*
 *
  *
   *
  *
 *
*
 *
  *
   *
  *
 *
*
 *
  *
   *
  *
 *
*
 *
  *
   *
  *
 *
*
 *
  *
   *
  *
 *
*
 *
  *
   *
  *
 *
*
 *


Create a new paste based on this one


Comments: