Puzzle 3 – Linear Search Algorithm

Step 2 – Get the input from the user

Now we need to get the user to make a guess.

  1. use an  input statement to let the user enter something
  2. store the value in a variable called  answer
  3. don't forget to convert the input into a number using  int
  4. run your program to check it works

At the minute this doesn't do much, but we're nearly there