[try Beta version]
Not logged in

 
Please help me!!!!!

Mar 14, 2008 at 12:42am
This is my assignment could you guys please help me out!!!!!!!!!



------------------------------------------------------------------------------






Sorting Array assignment

1 . Fill the array with 5 numbers that you will input from the keyboard and print this array.
2 . Now fill the array with random numbers between 1 and 10. Print it
3. Sort and print the array in the following fashion:

The odd numbers must go to the front of the array and the even numbers go to the end of the array.
Now sort the odd numbers in ascending order at the beginning of the array and sort the even numbers in descending order following the odd numbers.



Mar 14, 2008 at 12:56am
I suggest doing this by yourself first. If you get into trouble then that's the time to ask for help. If this is really an assignment from a school work, then you know how to get started.

Also, the idea of programming is think of a solution to solve a problem. If you haven't please do think of one. You'll get no help if you want to be spoon fed.
Topic archived. No new replies allowed.