so i want a user to input a number and then I will check if that number is in between 5-10 AND if it is odd... if BOTH statements are not true then it will ask the use for another number (or loop back up)... heres what i got so far
i actually haven't figured out how to find out if its odd yet but lets do this first... it returns some errors
edit: it seems to have a problem with "line1"
Code:
do
{
System.out.print("How many lines? ");
line0 = br.readLine();
double line1 = Double.parseDouble(line0);
}
while(line1 < 5 || line1 > 10);
i actually haven't figured out how to find out if its odd yet but lets do this first... it returns some errors
edit: it seems to have a problem with "line1"