Here's some help for you
Code:
#include <stdio.h>
#define NR_STUDENTS 5
#define NR_QUIZES 5
int main(void)
{
int i, j;
int score[NR_STUDENTS][NR_QUIZES];
for (i = 0; i < NR_STUDENTS; i++)
{
for (j = 0; j < NR_QUIZES; j++)
{
/*
Remember, arrays are accessed with index 0 to N-1,
so in this example we +1 to the index to give the
user the impression we're dealing with 1 to N
*/
printf ("Enter the score for student %d for test %d of %d: ", i+1, j+1, NR_QUIZES);
fflush(stdout); /* Flushes the output stream to ensure you see the above msg on the screen*/
scanf("%d",&score[i][j]); /* Get over using scanf() asap, its not good */
}
}
/* Now dump the array to prove it worked */
for (i = 0; i < NR_STUDENTS; i++)
for (j = 0; j < NR_QUIZES; j++)
printf ("%d %d %d\n", i, j, score[i][j]);
return(0);
}