0

Ira Banks

// CS 171-02

//10/29/2010

// This program will to simulate the following activity. He has 25 chips numbered 1 through 25 in a bag.

// He thinks of a number from 1 to 25. Then he draws numbers from the bag, recording each and returning it to the bag,

//until he draws the number he thought of on two consecutive draws. How many numbers are drawn before the number thought of is drawn on two consecutive draws?

//Print the list of numbers in the order drawn. How many numbers were drawn before the number thought of is drawn the first time? Sort the list

//of numbers drawn and print the list again.

```
#include <iostream>
#include <string>
#include <array>
#include <cstring>
#include <cstdlib>
using namespace std;
int main()
{
int number;
int bag[25];
bag[25] = 1 + 1;
cout << "Please enter the number you are thinking of"/n;
cin >> number;
```

*Edited 6 Years Ago by __avd*: Added [code] tags.