So im fairly new to programming and I ran into something which I cannot figure out.

I'll demonstrate my problem.

```
int main(void){

    int number;

    if(number == 1){
        number1();
    }else if(number == 2){
        number2();
    }else if(number == 3){
        number3();
    }else if(number == 4){
        number4();
    }else if(number == 5){
        number5();
    }else if(number == 6){
        number6();
    }else if(number == 7){
        number7();
    }else if(number == 8){
        number8();
    }else if(number == 9){
        number9();
    }else if(number == 0){
        number0();
    } else if (number >= 10 && <= 19){
        number1();
        number2(25);
    }

}

void number1(int Q){
    VGA_box(X + 5 + Q, 20, X+7 + Q, 60, white);
}

void number2(int Q){
    VGA_box(X + Q, 20, X+ 20 + Q, 22, white);           
    VGA_box(X + 18 + Q, 22, X+ 20 + Q, 38, white);      
    VGA_box(X + Q, 38, X+ 20 + Q, 40, white);           
    VGA_box(X + Q, 40, X+ 2 + Q, 58, white);            
    VGA_box(X + Q, 58, X+ 20 + Q, 60, white);                   
}

```

Please ignore the functions `VGA_box()`, since this is just a function to write a line/box.

I'm making a little game and I would like to add a scoreboard, but here is my problem:

Since I'm drawing the numbers (so they look better IMO), I have to call functions, functions which represent a number. So if number = 1, function `number1();` is called.
Is there an easy way to call the functions `number2()`, `number5()` and `number9()` if the number is 259? Or lets say; 632. The only possible way I can figure out is to use a lot of if-statements but that will take me a while to do.

Is it possible to use a for-loop which keeps track of what the number is and calls the functions which needed?

Thank you in advance.