Connecting Tech Pros Worldwide Help | Site Map

SPIRAL PROBLEMS

Usman
Guest
 
Posts: n/a
#1: Jul 22 '05

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

--
Yours forever in Digital Paradise
uSmAn

-------------------------------------------------
I tried Linux 18 months ago.
I removed it the very next day


Alf P. Steinbach
Guest
 
Posts: n/a
#2: Jul 22 '05

re: SPIRAL PROBLEMS


* "Usman" <game_pk@hotmail.com> schriebt:[color=blue]
>
> 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[/color]


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.

Buster
Guest
 
Posts: n/a
#3: Jul 22 '05

re: SPIRAL PROBLEMS


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.


Closed Thread