Fill the blank so that weight is tested in two ways:
weightmust be equal or greater than 136weightmust be less than or equal to 147
Answer:
// check that the weight is within range
if ( weight >= 136 && weight <= 147 )
System.out.println("In range!" );
else
System.out.println("Out of range." );
A Run of the Program
The boxer must weigh enough (weight >= 136),(weight <= 147).&&.
Here is a JavaScript version of the program:
QUESTION 10:
Run the program for a weight of 140.