• + 21 comments

    no need to read the input as string . read it as int using "scanf("%1d",your array[i)[j]);" ...read only a single digit at a time