//
#include "stdafx.h"
#include
#include
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int mult1, mult2, uprod, prod;
mult1 = rand() % 100 + 1;
mult2 = rand() % 100 + 1;
cout<< "What is the product of ";
cout<< mult1;
cout<< " and ";
cout<< mult2;
cout<< " ?";
cin >> uprod;
prod = mult1 * mult2;
if(prod == uprod)
cout<< "excellent!";
else
cout<< "Wrong!";
cout<< " The product is ";
cout<< prod;
system("PAUSE");
}
what are the libraries
ReplyDelete