Question: Using C++ Print pattern Write a function void print_line_pattern(int no_gap, int no_pattern, char p). p is of type character and is supplied as a parameter.

Using C++ Print pattern Write a function void print_line_pattern(int no_gap, int no_pattern, char p). p is of type character and is supplied as a parameter. It will print gap no_gap times. Then it will print the character p no_pattern times. Then go to next line. From main(), take input from user how many lines L will be there. Take another input for pattern. It will be a character type. Pass this pattern as a parameter to the function print_line_pattern(..., , pattern); Then write a for loop to use this function to print L lines from high to low as follows **************** *********** ******** ****** ***** Run your program for 1 line, 2 lines, and 10 lines Give your code below Give output for all input

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!