Question: Write an interactive Java Program named NumberLineTriangle.java which uses the JOptionPane class for input. The program should ask you to input the height/base of the
Write an interactive Java Program named NumberLineTriangle.java which uses the JOptionPane class for input. The program should ask you to input the height/base of the Triangle. When the base has been entered by the user, the program should echo using the System.out.println() output scheme, the words, You have Entered The Height/Depth/Base Of 10, according to the base entered. After that it should then draw / output a right-angled triangle made of integers just as shown below: 0 01 0123 01234 012345 0123456 01234567 012345678 0123456789 This program should be implemented using FOR loops. No methods apart from main() should be used.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
