int main(void){
    unsigned i, j, k, choice, winsbyswitch=0, door[3];

    srand(time(NULL));                                                          
    for(i=0; i<GAMES; i++){
        door[0] = (!(rand()%2)) ? 1: 0;                                         
        if(door[0]) door[1]=door[2]=0;                                          
        else{ door[1] = (!(rand()%2)) ? 1: 0; door[2] = (!door[1]) ? 1: 0; }    
        choice = rand()%3;                                                      

        
        if(((!(door[((choice+1)%3)])) && (door[((choice+2)%3)])) || (!(door[((choice+2)%3)]) && (door[((choice+1)%3)]))) winsbyswitch++;
    }
    printf(, GAMES, winsbyswitch, (float)winsbyswitch*100.0/(float)i);
}