Question: Triangle Maker 9000! Objective: Write a program that takes in a positive number and draws a horizontal triangle of asterisks (*). The inputted number represents

Triangle Maker 9000!

Objective:

Write a program that takes in a positive number and draws a horizontal triangle of asterisks (*). The inputted number represents the size of the triangle, or in other words the number of asterisks at the peak. It starts out by increasing the number of asterisks at each line until it reaches the size of the triangle and then decreases the number of triangles at each line.

Example Dialog:

Welcome to Triangle Maker 9000! Enter the size of the triangle.

3

*

**

***

**

*

DONE!

i need it by Drjava please

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!