C Programming Code Examples C > Beginners Lab Assignments Code Examples Displaying a table in C programming language Displaying a table in C programming language Displaying a table in C programming language is more or less similar to that of counting. We use only one iteration and increment it with the value of which table is being printed. #include <stdio.h> int main() { int i, j, n; n = 3; j = 1; for(i = n; i <= (n*10); i+=n) { printf("%3d x %2d = %3d\n", n, j, i); j++; } return 0; } procedure table() Define table value n FOR value = n to (n*10) DO DISPLAY n Increment value by n END FOR end procedure