Explaining the sections of code in TripleX

The first section is the preprocessor directives at the beginning of the file. These line instruct the compiler to insert predefined libraries of functions to the code so they can be used in the code that we are writing.

The second section is the main function. WE need this so that the operating system knows where to start when running our code.

Next we have our expression statements. These lines perform specific operations. In this case they are outputting text to the user. To provide instructions and set the scene for the game.

After that we have out declaration statements. In these lines we are declaring and initializing the values that the player will need to input in order to proceed as well as the sum and product which will be used as hints.

Next we have more expression statements that are giving the player the hints and finally the return statement that will end the execution of the game.