15 lines
348 B
C
15 lines
348 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int main(void) {
|
|
int i, j;
|
|
printf(" X | 0 1 2 3 4 5 6 7 8 9 10\n");
|
|
printf("-----+--------------------------------------------\n");
|
|
for (i = 0 ; i<=10 ; i++){
|
|
printf(" %2d |", i);
|
|
for (j = 0 ; j<=10 ; j++){
|
|
printf(" %3d", i*j);
|
|
}
|
|
printf("\n");
|
|
}
|
|
return EXIT_SUCCESS;
|
|
} |