#include <stdio.h>
int main() {
int i = 1, x = 1, a, resultado;
printf(" Introduza a quantidade de tabuadas que quer! ");
do {
printf("\nTabuada do %d\n", x
); while (i <= 10) {
resultado = i*x;
printf(" %dx%d=%d\n", i
, a
, resultado
); i++;
}
i = 1;
x++;
} while (x <= a);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsJCglpbnQgaSA9IDEsIHggPSAxLCBhLCByZXN1bHRhZG87CglwcmludGYoIiBJbnRyb2R1emEgYSBxdWFudGlkYWRlIGRlIHRhYnVhZGFzIHF1ZSBxdWVyISAiKTsKCXNjYW5mKCIlZCIsICZhKTsKCglkbwl7CgkJcHJpbnRmKCJcblRhYnVhZGEgZG8gJWRcbiIsIHgpOwoJCXdoaWxlIChpIDw9IDEwKQl7CgkJCXJlc3VsdGFkbyA9IGkqeDsKCQkJcHJpbnRmKCIgJWR4JWQ9JWRcbiIsIGksIGEsIHJlc3VsdGFkbyk7CgkJCWkrKzsKCQl9CgkJaSA9IDE7CgkJeCsrOwoJfSB3aGlsZSAoeCA8PSBhKTsKCXJldHVybiAwOwp9CgogIA==