#include /* m_square.c * A program to give a 4x4 square and * the sum of its rows, columns, and diagonals. * Exersize from K. N. King, page 51 * * By Cory Spitzer * Feb. 28th, 2013 */ int main(void) { int a, b, c, d, e, f, g, h, i, j, k, l, m, n, p, q; printf("nums: \n"); scanf("%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f, &g, &h, &i, &j, &k, &j, &k, &l, &m, &n, &p, &q); printf("%2d %2d %2d %2d \n", a, b, c, d); printf("%2d %2d %2d %2d \n", e, f, g, h); printf("%2d %2d %2d %2d \n", i, j, k, l); printf("%2d %2d %2d %2d \n", m, n, p, q); // TODO: (trivial) add the the functions for the various sums // and the print statements. return 0; }