Unfortunately, we're not likely to just code up a homework assignment for you.
I'd suggest working this out on paper, by hand, for a few minutes, and see how YOU would do it. Then, expand what your doing into a step by step procedure. Then flush that out (forgetting the details for now), and put down some pseudo code for your algorithm.
There are others ways to print output besides printf - like putchar() or fprintf(stdin, ...).
What does your instructor WANT you to use? Or is that part of the assignment challenge?
For doing the arithmetic, a basic pair of loops should suffice:
Code:
for (row = 0; row < rowNum; row++) {
for (col = 0; col < colNum; col++) {
/* you'll need a number of special handling if statements to keep your row and col
variables from running off the array. All the subscripts on the edges of the array are
the problem.
*/
/* normal interior of the array code (sa=small array, ba = big array*/
sa[row][col] = ba[row][col - 2 + ba[row][col - 1] + ba[row]col] + etc.
}
}
These kinds of assignments will take longer than expected, so don't put it off! Show us some work, and then, show us some code.