I Haz Codes
In this lesson you will learn how to cast values. This means changing the data type of your code. This is a very important skill to master, especially when using basic input.
Write a program which will pick two random numbers and ask the user to work out the sum.
If they are correct, then display “well done”. If not, then display “try again.”
Take your answer to the last question and ask the player for their name. It should say hello to them before playing the game.
Try the following quiz to test your knowledge.
Below are some tasks to try to practice your skills.