Mar 10, 2017 at 1:21am UTC
hello everyone please have been given an assignment to write a code to guess exactly 3 times
Last edited on Mar 10, 2017 at 1:23am UTC
Mar 10, 2017 at 1:48am UTC
What does that even mean? If you require assistance please attempt the assignment and once you get stuck show us what you have and we will point you in the correct direction.
Mar 10, 2017 at 1:54am UTC
#include <iostream>
using namespace std;
int main()
{
int randNumber = 0, userNumber = 0;
int numOfAttempts = 1;
unsigned seed = time(0);
srand(seed);
randNumber = 1 + rand()%10;
cout << " ";
cin >> userNumber;
while (userWins != true)
{
Mar 10, 2017 at 3:02am UTC
much appreciated king kush..
Mar 10, 2017 at 6:01am UTC
You're welcome. Hope i explained it well enough. If youre still stuck post the code you have and ill take a look and see if i can help further.