Programs need to be able to branch and execute different instructions for different conditions. We can do this most simply using the IF statement.
We wanted to modify yesterday’s program so that we could turn it into a game. The user needs to guess the number that has been created by the dice roll. They have only one shot to get it right.
Some programmers noticed that the number the same the first few times they tried it, why do you think it was?