Exercise 1 There are 3 right-angled triangles in the pattern of stars below: Two upside down and one facing upwards. Write a program that uses
Exercise 1 There are 3 right-angled triangles in the pattern of stars below: Two upside down and one facing upwards. Write a program that uses two methods to draw the pattern of stars below. One method draws the upward facing triangle and the other method draws the bottom facing triangle. Mix up the calls to produce the desired figure. Start each line 5 tabs away from the left margin.
**********
*********
********
*******
******
*****
****
***
**
*
*
**
**
*
****
*****
******
*******
********
*********
**********
**********
*********
********
*******
******
*****
****
***
**
*
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started