Question: Write an interactive program to print triangles as follows: Requirements: 0. Eile Name: Assignment Triangle.java 1. Ask the user to input the triangle size and

 Write an interactive program to print triangles as follows: Requirements: 0.

Write an interactive program to print triangles as follows: Requirements: 0. Eile Name: Assignment Triangle.java 1. Ask the user to input the triangle size and the fill character (in main) 2. Write a static method called drawTriangle that takes two parameters, a size of a triangle and a fill character. It then should print out the triangle using the size and the fill character given. - Use for loops to print out the triangle Sample run as follows Enter the triangle size: 2 Enter the fill chari :- Enter the triangle sire: 4 Enter the f111 char

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!