#include <iostream>
#include <time.h>
#include <stdlib.h>
usingnamespace std;
int main()
{
int anum, bnum, play, i, num_equal = 0, num_first_smaller = 0, num_first_greater = 0;
srand((unsigned)time(0));
while(true)
{
cout << "Enter the number of times to play (-1 to quit) : " ;
cin >> play ;
if (play == -1)
break;
for (i = 1; i <= play; i++)
{
anum = 1 + rand() % 100;
bnum = 1 + rand() % 100;
if (anum == bnum)
num_equal++;
elseif (anum < bnum)
num_first_smaller++;
else
num_first_greater++;
}
//TO DO
// calc the percentages and display the result
}
system("pause");
return EXIT_SUCCESS;
}