ok here goes...
Code:
#include <iostream>
#include <cmath>
#include<cstdlib>
#include<ctime>
using namespace std;
int random(int low, int high)
{
return low+rand()%(high-low+1);
}
int random2(int low, int high)
{
return low+rand()%(high-low+1);
}
int main ()
{
int answer;
srand (time(0));
cout << "How much is ";
cout << random(0,10);
cout << " times ";
cout << random2(0,10);
cout << "?\n";
cin >> answer;
int c [2] = {random, random2};
int total = 0;
for (int i = 0; i < 2; i ++)
total *= a[2];
if ( answer == total)
cout << "correct\n";
else
cout << "try again\n";
return 0;
}