In this pattern, n represents the dimensions of the shape pieces and k their number of repetitions.
For example, if n input is 3 and k input is 5, the following figure will be the output of the program.
Alien_1 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.