0

I am writing a program that generates 2 random #'s then asks the user to give the product of the 2. I have everything (close to) working except the input. I even added a "cheat" to display the answer `prod`

and when inputting the exact same #, it is registering as incorrect.

Thanks for your help, this is due in like an hour so I am trying to finish it up.

```
int main ()
{
int a, wrong, right;
int count = 0;
int count2 = 0;
int num1, num2, prod;
srand (time(0));
wrong = 0;
right = 0;
cout << "Multiplication\n" << "ctrl-z to quit\n";
while (count <= 11)
{
count++;
if (count >= 10)
{
count2 = count2 + count;
count = 0;
}
randomGen (&num1, &num2);
prod = num1 * num2;
cout << "What is " << num1 << " times " << num2 << endl;
cin >> a;
counter (&count, &count2, &wrong, &right);
while (!cin.eof() || a != prod)
{
cout << prod;
incorrect ();
wrong++;
cin >> a;
}
if (a == prod)
{
correct();
right++;
}
}
}
```