Hey I'm having trouble using scanf to input two number and it is only letting me input 1. here is my code
#include <stdio.h>
int main()
{
int i ;
int j ;
int tl[10][25] ;
int br[40][5] ;
int point1[100][100] ;
for(i=0;i<40;i++)
for(j=0;j<25;j++)
{
printf("please enter value x,y for top left", i+1) ;
scanf("%d", &tl[i][j]) ;
printf("please enter value x,y for bottom right", i+1) ;
scanf("%d", &br[i][j]) ;
printf("please enter value x,y for point") ;
scanf("%d", &point1[i][j]) ;
if(point1[i][j] <= tl[i][j] && point1[i][j] <= br[i][j])
{
printf("point %d, is inside rectangle", point1[i][j]) ;
}
else
{
printf("point %d, is outside rectangle", point1[i][j]);
}
}
}