I'm very new to this, and i'm trying to create a text based minesweeper.
I want the player to decide how big he want the grid to be.
My problem is, that the if-statement, that should make sure, the user types in a number from 1 to 10 doesn't work. Please have a look.

```
scanf ("%i/%i",&x,&y);
if (0 < x < 11 && 0 < y < 11)
{   
printf ("you have selected %i by %i\n",x,y);
for (i = 0; i < x; i++) 
    {
    for (j = 0; j < y; j++) 
        {
        grid[x][y] = 'O';
        printf ("%c ", grid[x][y]);
        }
    printf ("\n");
    }
}
else
printf ("Wrong gridsize");

```