All pastes #423929 Raw Edit

Untitled

public c v1 · immutable
·published 2007-04-04 14:20 UTC
rendered paste body
int news_balance(int i, int *x[], int count){    if (i<12){        x[i]=rand()%2 - 1;        count = count + x[i];        if ( (count > 2) || (count < -2) )                        news_balance(i-1, x, count);        else                        news_balance(i, x, count);    }return 0;}int main(){int x[12];news_balance(0, &x, 0);}