Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,173 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,530 people online right now. Registration is fast and FREE... Join Now!




swapping in array

 
Reply to this topicStart new topic

swapping in array

Tedsky
post 5 Oct, 2008 - 07:22 PM
Post #1


New D.I.C Head

*
Joined: 5 Oct, 2008
Posts: 1

CODE
Abbreviated version of the [inline] tag.
You Type     We Show
[il]
Code Here
[/il]
    Code Here


Hello! I'm Tedsky...

I'm getting hard up with this assignment.
Please help me find the ascending and descending order of the input numbers from 1-10 using array. Please, I need it now! thanks... smile.gif
sample output:
enter number 1: 3
enter number 2: 9
enter number 3: 5
enter number 4: 2
enter number 5: 6
enter number 6: 10
enter number 7: 1
enter number 8: 7
enter number 9: 4
enter number 10: 8

input numbers: 3,9,5,2,6,10,1,7,4,8
ascending order:1 2 3 4 5 6 7 8 9 10
descending order: 10,9,8,7,6,5,4,3,2,1


that's the sample dialogue:
User is offlineProfile CardPM

Go to the top of the page

Martyr2
post 5 Oct, 2008 - 09:02 PM
Post #2


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 5,012



Thanked 171 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


Welcome to Dream.In.Code Tedsky!

First thing... wrong forum to be posting your question in. This is for meeting and greeting only.

Second, I am not sure why you used code tags on non code. Might want to work on that.

Third, it is site policy that we require a person to show their "best effort" attempt at trying to solve the problem first. This means we like to see what code you have already been working on and where you are stuck. We then help you get out of the jam. In other words, we DO NOT do people's homework for them.

Lastly, we do not respond well to people saying "Now!" or "ASAP" or "HURRY"

So follow these rules and we can certainly help you out. Thanks for joining the board, hope to see more of you around. smile.gif
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 03:22PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month