You could try something like this:
#include <stdio.h>
void main(void)
{
char a[5][5];
for(int i=0;i<5;i++){
for(int j=0;j<5;j++)
a[i][j] = getchar();
getchar();
}
}
This program will fill your array a[][] with the characters entered like so:
*****<enter>
*****<enter>
*****<enter>
*****<enter>
*****<enter>
Note that the input is assumed to be in the correct format, and there is no feedback yet if anything goes wrong. To check if an entered character is valid, you could add a check like this:
for(int i=0;i<5;i++){
for(int j=0;j<5;j++){
a[i][j] = getchar();
if(a[i][j] != ' ' && a[i][j] != '*'){
}
}
getchar();
}