Developpement/23DEV1.1/TPS1/TP01/07-Boucles/BouclesBis/Multiplication.c

15 lines
348 B
C
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
#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;
}