Question: Using Java In PrintTriangle.java, write a program that asks the user for an integer between 3 and 40 and prints a right triangle of asterisks

Using Java
In PrintTriangle.java, write a program that asks the user for an integer between 3 and 40 and prints a right triangle of asterisks of a size based on the number. So if the user enters 3 , the output will be: 1 while an input of 5 will result in output of Validate the user's input to ensure that it is in the required range (continuing to ask for the input until you receive a number in the correct range). You must use a nested for loop in completing this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
