Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program using nested loops to display the pine tree as shown below. We\'

ID: 3655303 • Letter: W

Question

Write a program using nested loops to display the pine tree as shown below. We're working with Scanf, Printf * *** ***** ******* ********* *********** ************* *** *** Hint: For the top of the tree, you should have one loop that counts the rows 1-7. Then, you should have two inner loops, the first to print the spaces in front of the *'s and the second to print the *'s on that row. The number of spaces and the number of *'s for each row are shown below. Row Spaces *'s 1 6 1 2 5 3 3 4 5 4 3 7 5 2 9 6 1 11 7 0 13 You will then have another loop after the nested loop to print the tree trunk. That one should print 5 spaces, then 3 asterisks, and then an end line two times.

Explanation / Answer

#include using namespace std; int main() { int height; int level; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote