So I have my program up and running but it us outputting the wrong values. 2 and of the four values are wrong. The first and last values are wrong for some reason while the second and third values are correct. Thanks everyone.

Code:#include <stdio.h> #include "conio.h" int main() { // 4x1 int product, entries, current, input; char buffer[1028]; int a,b,i,j; int x[4] [4] = {{ 0,1,1,0}, {1,0,0,0}, {0,1,0,0}, {0,1,0,1}}; //i has 4 numbers j has 4 numbers int matrix [4][1]; for (a=0; a <4; a++) { for(b=0; b< 1; b++) { printf("Please enter in four entries for a 4*1 matrix."); scanf("%d", &matrix[a][b]); } } for (i = 0; i < b; i++){ for ( j =0; j < a ; j++) { product =x[i][j] * matrix[i][j]; printf("The product of the two matricies is %d\n", product); _getch(); } } getchar(); return 0; }