Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 30-01-2008, 03:21 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2007
Posts: 16
Thumbs down Any one help me to solve it.


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

Can any one give me such a program to generate this output??? I wanna this wihthout using of arrays. Very truely, a typical task for me. (1,16,15,14,13 in first column, 2,17,24,23,12 in second column, 3,18,25,22,11 in third column, 4,19,20,21,10 in fourth column, 5,6,7,8,9 in fifth column.)

Last edited by manubatham20; 30-01-2008 at 03:28 PM. Reason: Output is not such that i desire.
manubatham20 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 30-01-2008, 11:12 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: Any one help me to solve it.

Have to try to do it without using arrays, but the pattern there is simple, its an inward spiral of consecutive numbers, aka, a 5x5 inward spiral matrix.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 31-01-2008, 08:11 AM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2007
Posts: 16
Default Re: Any one help me to solve it.

How, i can't because you are not allowed to use any graphical functions in it. So how can i go back to these locations. (i.e. without using goto or any other function like this).
manubatham20 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solve It If U can....... pushkar1986 Software Q&A 33 02-03-2008 07:31 AM
Solve this in c++ perk_bud Programming 5 25-11-2007 08:23 PM
solve this !! frogonfloor Programming 3 20-11-2007 08:36 AM
Can any one solve this ???? DukeNukem QnA (read only) 4 15-06-2007 08:46 PM
I Bet u ll solve this.. infohardik QnA (read only) 4 26-10-2004 04:59 PM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2