Question: Write a do - while loop that continues to prompt a user to enter a number less than 1 0 0 , until the entered
Write a dowhile loop that continues to prompt a user to enter a number less than until the entered number is actually less than End each prompt with newline Ex: For the user input the expected output is:
Enter a number :
Enter a number :
Enter a number :
Your number is:
Learn how our autograder works
x
import java.util.Scanner;
public class NumberPrompt
public static void main String args
Scanner scnr new Scanner
System.in;
int userInput;
Y Your solution goes here
System.out.printlnYour number is: userInput;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
