I'm doing some practicing with arrays and I'm a bit confused on the subject, it keeps printing out just one of the numbers entered but not a mix of different numbers from the user, what exactly am I doing wrong?

```
#include <stdio.h> 
int main ()
{ 
    int a; 
    int b;
    int i; 
    int j; 

    printf(" Please enter a value for the first array"); 
    scanf(" %d", &a); 

    printf(" Please enter a value for the second array");  
    scanf(" %d", &b);

    double array[a][b]; 

    for( i = 0; i< a; i++) 
    { 

        for( j=0; j< b; j++)
        { 
            printf(" enter values or the arrays\n"); 
            scanf(" %lg", &array[a][b]); 
        } 

    }  

    for( i = 0; i< a; i++) 
    { 

        for( j=0; j< b; j++)
        { 
            printf("%lg", array[a][b]); 
        } 

       printf("\n"); 
    }   
    return 0; 
}  

```