Question: JAVA (1) Read in a number from the user that is in the ranger 1-200. If the user inputs a number out of that range,
JAVA
(1) Read in a number from the user that is in the ranger 1-200. If the user inputs a number out of that range, print out:Invalid number, try again. and read in a number until a valid one is produced. (2) Print out the numbers from 1 to userInput but: If a number is divisible by 3, print Fizz instead If a number is divisible by 5, print Buzz instead If a number is divisible by both 3 and 5, print out FizzBuzz Hint: What's the remainder if a number n is divisible by number m? That is, what would be the result of n % m?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
