Connecting Tech Pros Worldwide Help | Site Map

SPIRAL PROBLEMS

  #1  
Old July 22nd, 2005, 07:47 AM
Usman
Guest
 
Posts: n/a

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


  #2  
Old July 22nd, 2005, 07:47 AM
Alf P. Steinbach
Guest
 
Posts: n/a

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.

  #3  
Old July 22nd, 2005, 07:48 AM
Buster
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spiral Access of 2 d array. mail2sandeepnl@gmail.com answers 8 August 29th, 2007 08:25 PM
Please help me with these problems.... [homework] vengeboyz answers 3 September 11th, 2006 03:29 AM
ASPX now with methods and classes John Rivers answers 6 November 19th, 2005 06:35 PM
Fixed font sizes Pamel answers 98 July 20th, 2005 11:30 PM