#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void stampaTabella(int Base);
int main()
{
int base = -1;
while(base < 1 || base >100)
{
printf("inserire un numero tra 1 e 99: \n");
scanf("%d", &base);
}
stampaTabella(base);
fflush(stdin);
getchar();
exit(0);
}
void stampaTabella(int Base)
{
int i;
printf("\n--------------------\n");
printf("| tabellina del %2d |\n", Base);
printf("--------------------\n");
for(i=1; i<=10; i++)
{
printf("| %2d | %3d |\n", i, i*Base);
}
printf("--------------------\n");
}