How can i print it recursively with one helper function?
[img]http://img2.imageshack.us/img2/1690/recursive.th.jpg[/img]
Here, n will always be a power of 2 and c will be indicating the column number from
which to start the output. The above pattern has been produced with the initial function call RecursivePattern(8,1)
It prototype should be like void Recursive pattern(int n, int c)
where n number represent Asterisk, and c represent column.
Above output is function of RecursivePattern(8,1). As you can see the longest line of the pattern has 8 asterisks beginning in column 1. In general, the function call RecursivePattern(n,c) will produce the output in which the longest line has n asterisks beginning in the column c. Note that there is a space after each asterisk.