The Number game has written in C++. This Number game tells the number in your mind using simple maths tricks.
Packet workflow is as follows:
1) Run the program, the user needs to think of a number between 1 to 31.
2) There are five sequences of numbers
3) The user needs to enter one or zero for every sequence.
4) If the particular number is present in the sequence, enter one otherwise enter zero.
5) After pressing any key on the keyboard, your number will be displayed on the screen
The logic of the program:
This game is implemented by an array.