APL/APL1.1/TP07/tables.c

18 lines
296 B
C
Raw Normal View History

2021-09-28 15:59:07 +02:00
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int table;
while(1) {
printf("Veuillez donner un entier : ");
scanf("%d", &table);
if (table == -1) return EXIT_SUCCESS;
for (int i = 1; i <= 10; i++) {
printf("%d * %d = %d\n", i, table, i*table);
}
}
}