I need to create a program and part of the program has a variable that cannot be any higher than the number 99. In other words, how do i make it so the user can only input numbers 0-99?
Take the input, cast it to a double. In a while loop, check if it is bigger than 0 but smaller than or equal to 99. Break the loop only if the number is within those bounds.