HELP WITH STM32F - TWO DIGIT DISPLAY

Hello guys! I hope you all are safe.

I'm doing a project with STM32F1036 that i need to make a two digit progressive counter with multiplexing displays. I put this on the code and the displays are counting toguether and not progressive:

for(k=0;k<100;k++){
            
            GPIOB-> ODR = TAB[k];
            
            HAL_Delay(20);   
            GPIOB-> BSRR = 1<<7;       
          GPIOB-> BSRR = 1<<8;
            HAL_Delay(20);

 

 

How can i make to them count like this?

 

Thanks for your attention,

 

W.F