20 lines
311 B
C
20 lines
311 B
C
|
#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;
|
||
|
}
|
||
|
|
||
|
|