Question: i want the answer plz Question 3 (13 Points) Write a java program that uses nested for-loops to display a sequence of numbers. The program
Question 3 (13 Points) Write a java program that uses nested for-loops to display a sequence of numbers. The program should ask the user to enter an integer n. The number n should be in the range 3 to 1000 . If the number is not in the range, then display an invalid message and exit the program. Otherwise, on the first line, the program should display the number n repeated n times. Then on the next line it should display the number n1 repeated n1 times, and on the next line it should display the number n2 repeated n2 times, and so on for the next lines and stop when the number reaches zero. Also, display a star () before each line and display a hash (\#) at the end of each line. See sample input/output on the right side
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
