hey, this is supposed to collect data into a 2 by 3 array. believe it or not, my teacher wrote this problem and he spent 20 minutes trying to figure out why it wasn't running properly. anyone care to help me figure out what was wrong with it??
#include <stdio.h>
int main () {
int scores[2] [3];
int row =2, col=3;
int i, j;
for (i=0;i<=row;i++){
for (j=0;j<=col-1;j++){
printf ("enter number");
scanf ("%d", scores[i] [j]);
}
}
printf ("\n", scores [i] [i]);
return (0);
}