Control of input value

Hi.

I need some help to write a function that asks for a number and check that the number not have been used before.

Comments

  • what have you started and what are your ideas?

    i would suggest an array to store input values, then loop each time input is given to check if it is a repeat or not.
  • what have you started and what are your ideas?

    i would suggest an array to store input values, then loop each time input is given to check if it is a repeat or not.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion