APL/APL1.1/Dev1.1/Dev2809/TableMultiplication.c

30 lines
434 B
C
Raw Normal View History

2021-10-05 15:07:50 +02:00
#include <stdio.h>
#include <stdlib.h>
#define TAILLE 11
int main(void) {
int i;
int y;
printf(" X |");
for ( i = 0; i < TAILLE+1;i++){
printf("%3d ",i);
}
printf("\n");
printf("-----+");
for (i = 0;i< TAILLE+1;i++){
printf("-----");
}
printf("\n");
for ( i = 0;i<TAILLE+1;i++){
printf("%3d ",i);
printf("|");
for (y = 0; y<TAILLE+1;y++){
printf("%3d ",i*y);}
printf("\n");
}
return EXIT_SUCCESS;
}