#include <stdio.h>
int main(void) {
int h=0;
int k;
int b;
int table(int n) {
int i=-1;
while (i++<10) {
printf("%d ",n);
printf("x %d = ",i);
int r=n*i;
printf("%d \n",r);
}
}
while (1) {
if (h++>0) {
printf(" voulez vous une autre table ? \n 1 pour oui et 0 pour non");
scanf("%d\n",&b);
if (b==0)
return 0;
}
printf(" Quel entier voulez vous multiplier ? \n");
scanf("%d\n",&k);
table(k);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: