SPIRAL PROBLEMS

U

Usman

Hello Everyone.
Can some one help me on this question , I studied a lot but still am unable
to do this
I need to print the following pattern using recursion in C++ , the end term
is ' n ' selected
by the user. I hope so someone can do this here.
Byes.


The PATTERN IS


. 10 11 12 13
. 9 2 3 14
23 8 1 4 15
22 7 6 5 16
21 20 19 18 17


THE PATTERN MOVES with a 1 increment in SPIRAL DIRECTION
 
A

Alf P. Steinbach

* "Usman said:
Can some one help me on this question , I studied a lot but still am unable
to do this
I need to print the following pattern using recursion in C++ , the end term
is ' n ' selected
by the user. I hope so someone can do this here.
Byes.


The PATTERN IS


. 10 11 12 13
. 9 2 3 14
23 8 1 4 15
22 7 6 5 16
21 20 19 18 17


THE PATTERN MOVES with a 1 increment in SPIRAL DIRECTION


Just apart from being off-topic in [comp.lang.c++], what's the deal
with the indentation of '9'?

I fail to see the indentation pattern.

This response cross-posted to [comp.programming], follow-up to there.
 
B

Buster

I don't know why you think posting the question again is going to
help. Why not go and look at my answer on comp.programming?

Regards,
Buster.
 
U

Usman

Buster wrote in message.
I don't know why you think posting the question again is going to
help. Why not go and look at my answer on comp.programming?


I took your help on that group after posting my mail at this group so
you can say that I took the right decision late. Anyhow, your help was
great. Thanks for it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top