Question: 2. Write a program that will print out the following pattern to the screen and repeat it 4 times. The program must contain two

2. Write a program that will print out the following pattern to

 

2. Write a program that will print out the following pattern to the screen and repeat it 4 times. The program must contain two user-defined functions with no arguments and no return value. The first function will print the first three lines of the pattern. The second function will print the final three lines of the pattern. The program will run each function four times, alternating to create the diamond shown four times on the screen. * *** ***** ***** *** *

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 Programming Questions!