Create an algorithm for a program that draws a triangle using asterisks. Allow t
ID: 3921053 • Letter: C
Question
Create an algorithm for a program that draws a triangle using asterisks. Allow the user to enter the size of the triangle Make the height and the base the same size.Here are some examples of how the output might look. You will need to do desk checks of your algorithm.
The user inputs a 5 for the size.
This program will build a triangle of the size you choose. Please enter the size of the triangle. 5
* * * * *
* * * *
* * *
* *
*
or
*
* *
* * *
* * * *
* * * * *
or
* * * * * * * * * * * * * * * Create an algorithm for a program that draws a triangle using asterisks. Allow the user to enter the size of the triangle Make the height and the base the same size. Here are Some examples of how the output might look. You will need to do desk checks of your algorithm. The user inputs a 5 for the size. This program will bild a triangle of the size you choose. Please enter the size of the triangle. or or
Explanation / Answer
Pattern() { int i, j, rows Enter the number of rows scanf("%d",&rows) for i=rows; i>=1; --i { for j=1; jRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.