#include #include #include int main (void){ int ent1, ent2, n, result, score=0; clock_t tiempo; struct tms t; tiempo = times (&t); srandom (tiempo); for (n=0; n<10; n++){ ent1 = random()%100+1; ent2 = random()%10+1; printf("%d x %d\n", ent1, ent2); scanf("%d", &result); if (result == ent1*ent2){ printf("Correcto!!\n"); score++; } else { printf("Falso! El resultado es %d\n", ent1*ent2); } } printf("Puntaje= %d / %d\n", score, n); return 0; }