hi guys i need ur help to do my homework
i have this question
Write a program that helps students to learn multiplication.
Use rand to produce two positive one-digit integer. It should then type a question such as How much is 6 times 7?
The student type the answer. Your program check the answer if it correct print "very good" then ask another multiplication question. If the answer is wrong print "NO, try again" then let the student try the same question again until the student gets the right answer.
my problem that i don't know how to multiply to random numbers
look to what i did
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
#include <cstdlib>
using std::rand;
int main()
{
int number;
cout << "how much is " << (0 + rand()%10) << " times " << (0 + rand()%10) << "?";
cin >> number;
if (number == (0 + rand()%10)*(0 + rand()%10)== (0 + rand()%10)*(0 + rand()%10))
{
cout <<"very good";
}
else
{
}
cout << endl;
return 0;
}
please help me with this question
thanks