Question: 2. Write a program that displays the pattern like a diamond using asterisk and each row contain an odd number of asterisks. Use while or

 2. Write a program that displays the pattern like a diamond

2. Write a program that displays the pattern like a diamond using asterisk and each row contain an odd number of asterisks. Use while or do...while or for loop. Number of rows (half of the diamond): 5 * *** ******* ******* ********* ******* ***** *** *

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