im a beginner in c++, i need to write a program keeps generating two random numbers between 2 and 9 and asks the user for the product of the two numbers. Generate 5 such pairs of numbers and get the answers from the user.
so far i have. i know it might be wrong. just need some pointers
#include <iostream>
#include <cmath>
#include <time.h>
#include <stdlib.h>
using namespace std;
int main ()
Yeah, I see I screwed up on the rand(). Forgot about that pesky zero, just went with the 7 + 2 = 9, top of scale. I like the way you set up the rand hi/lo numbers. I'll use it that way in some of my future programming endeavors.