Question: In C Program The input pattern must be as same as the example. Problem 4: Customized Triangle (20%) Please write a program that prints out



In C Program The input pattern must be as same as the example. Problem 4: Customized Triangle (20%) Please write a program that prints out an equilateral triangle with user-defined height and some customized requirements. Note: 1. The height of triangle will not be larger than 50 and the index of the row starts from 0 (if height of triangle = 12, the index of row will be 011). 2. The requirements can be assigned repeatedly (each row can be specified with different signs for many times and the program will take the last assignment as the final decision) and continuously until -1 are assigned. Example: Input Output 5 4+ 2 - -1 10 7777 ZZZZZ % % % % % % $ $ $ $ $ $ $ $ 7 B 5% 4Z 37 7$ -1 Hint: For example 1, 5 (height of triangle) 4 + (use + to replace * at row 4 in triangle) 2-(use to replace * at row 2 in triangle) -1 (end of input)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
