integer

Assignment 1

Write a program that asks the user to enter an integer from 1 to 50 (make sure to check that numbered entered is between 1 & 50). Displays an isosceles triangle by printing rows of asterisks, 1 asterisk on the first row, 2 on the second, etc., up to the number entered by the user. Then it decreases the number of asterisks by one per line back down to just one in the line printed.

Example: If user enters a 6

*
**
***
****
*****
******
*****
****
***
**
*

Use good programming techniques and prompt to run again.

 

 
For a custom paper on the above topic, place your order now!

What We Offer:

• On-time delivery guarantee

• PhD-level writers

• Automatic plagiarism check

• 100% money-back guarantee

• 100% Privacy and Confidentiality

• High Quality custom-written papers