Alright, I've done some more work on this since I last posted, but it's not working right. I'm pretty sure my rowSum and colSum functions are wrong, but at this point I'm mostly concerned about getting the matrix to work properly. Again, any and all help is greatly appreciated.
Code:
#include <stdio.h>
#include <stdlib.h>
#define DIM 5
int main()
{
int mat[DIM][DIM] = {0}, row, col, rowSum, colSum;
printf("Enter 25 numbers: ");
for (row = 0; row < DIM; row++)
for (col = 0; col < DIM; col++)
scanf("%d", &mat[row][col]);
rowSum += mat[row];
colSum += mat[row];
printf("The sum of the rows is: %d", rowSum);
printf("\n");
printf("The sum of the colums is: %d", colSum);
return 0;
}