Im stuck on these functions. How does one start to write a function to print out a set of 4 different patterns? So far ive gotten to the point where im using
void PrintPattern(int pattenrsize, int patternnumber, char patterncharacter)

now im lost as to how I read in the size number of the pattern I want ( which is 1 of 4 different ones)

****
****
****
****

****
* *
* *
****
@
@@
@@@
@@@@

and the last one is a diagnal line from top right to bottem left.

ok any suggestions?

Have you considered a switch statement?

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.