DEV_BUT1/DEV1.1/TP04/Table.c

20 lines
311 B
C
Raw Normal View History

2022-10-18 14:50:36 +02:00
#include <stdio.h>
#include <stdlib.h>
int main(void){
int ent1;
printf("entrez un entier : ");
scanf("%d", & ent1);
int i;
int res;
for(i = 1; i<11; i = i+1){
res = i*ent1;
printf("%d", ent1);
printf(" x ");
printf("%d", i);
printf(" = ");
printf("%d\n", res);
}
return EXIT_SUCCESS;
}