Code:

`#include <stdio.h>`

void display_multiplication_table(int height, int width, int pad)

{

int i, j;

for (i = 1; i <= height; ++i)

{

for (j = 1; j <= width; ++j)

{

printf("%*d", pad, i * j);

}

fputc('\n', stdout);

}

}

int main(void)

{

display_multiplication_table(12, 10, 4);

return 0;

}

Simple multiplication table display I created when I was bored.

edit: This may even be better for avoiding multiplication:

Code:

`void display_multiplication_table(int height, int width, int pad)`

{

int i, j, v;

for (i = 1; i <= height; ++i)

{

v = i;

for (j = 0; j < width; ++j)

{

printf("%*d", pad, v);

v += i;

}

fputc('\n', stdout);

}

}