Question: C programming language Test your program with: pattern1: height = 8, width = 20 pattern2: height=width=9 2. Write a single program that will use a

C programming language

Test your program with:

pattern1: height = 8, width = 20

pattern2: height=width=9

C programming language Test your program with: pattern1: height = 8, width

2. Write a single program that will use a nested for loop to create pattern 1 and pattern 2 shown below. The program should prompt the user for the height (number of rows) and width (number of characters per line) for pattern 1. Before drawing pattern 1, ask the user to end a single value for the height and width of the triangle for pattern 2. (Note the height and width for Pattern 2 should be the same value, so only one value should be requested from the user) For pattern 1, make use of an if structure inside a pair of nested loops to instruct the program what to print on the various lines and columns. The entire pattern can be made using equal signs), asterisks( and spaces r pattern 2 make use of an if structure inside a pair of nested loops to determine which character to print. The entire pattern can be made from spaces) and asterisks

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!