Connecting Tech Pros Worldwide Help | Site Map

SPIRAL PROBLEMS

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 22nd, 2005, 06:47 AM
Usman
Guest
 
Posts: n/a
Default SPIRAL PROBLEMS


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, 06:47 AM
Alf P. Steinbach
Guest
 
Posts: n/a
Default 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, 06:48 AM
Buster
Guest
 
Posts: n/a
Default 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.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.