Code:#include <stdio.h> #include <stdlib.h> #include <time.h> #include <conio.h> void print_rand_msg(const int msg_type); int main(void) { int n1; int n2; int prd, guess; int loop; int correct=0; for(loop=0; loop<10; loop++) { srand((unsigned int)time(NULL)); n1 = rand()%12+1; n2 = rand()%12+1; prd = n1 * n2; printf("\nWhat is %d x %d\?\n",n1,n2); if(scanf("%d", &guess) != 1) printf("Incorrect input."); else if(guess == prd) { printf("\nCORRECT\n"); correct++; } else { printf("\nINCORRECT\n"); } } printf("\nYou got %d0%% correct!\nPress any key to exit.", correct); getch(); }