Question: Write a function that takes in 2 parameters: number of lines to print and starting digit. The function should generate a pattern as shown below.
Write a function that takes in 2 parameters: number of lines to print and starting digit. The function should generate a pattern as shown below. Example: Number of lines: 5 Starting Digit: 3 Output generated: 34 345 456 34567 The function prototype for this function is given below. void print pattern(int, int)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
