#include int main() { int a, b, i, size; size=10; /* Write out heading line */ printf("a+b| "); /* Any for loop of the form ** for(expr1; expr2; expr3) { ** stuff; ** } ** can be replaced by a while loop: ** expr1; ** while(expr2) { ** stuff; ** expr3; ** } */ b=1; while(b <= size) { printf("%3d ", b); b++; } printf("\n"); /* Write out separator line (dashes) */ printf("---+-"); i=1; while(i <= size*4) { printf("-"); i++; } printf("\n"); a=1; while(a <= size) { printf("%2d | ", a); b=1; while(b<= size) { printf("%3d ", a+b); b++; } printf("\n"); a++; } return 0; }