I want to make a program that takes input 10 random numbers from user and arrange it in ascending order. Give me help for startup plz...

Recommended Answers

All 6 Replies

Look up "sorting algorithm"

If someone wrote on a paper 10 random numbers handed it to you how would you sort them? Theres many sorting algorithms you can use, quicksort and bubblesort are both pretty basic try looking up one of those algorithms

Bubble sorts are very easy to make. Just Google "bubble sort algorithm".

All the above listed algorithms are the bests you can find to sort an array of numbers but I would prefer this order for you to start with as you are a starter.

1>Selection sort
2>Bubble sort
3>Quick sort
4>Merge sort

1 Tells you how to start sorting with help from computers.2 takes the same to an higher level and tells you better way of sorting.3 and 4 are the best sorting algorithms available.

Go in the same order if possible.And ya GOOGLING it or searching it on WIKIPEDIA would help you a lot.

Nice link.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.