C program for sorting the numbers is very basic, start writing it and if you are having problems, post your program here and a description of the problem and you will be helped.
If you are taking a computer course, how do you expect to pass exams if you have plagiarized someone else work for your assignments.
There are several methods available to sort numbers. A simple way to program sorting is the so-called "bubble-sort". This is inefficient for larger lists of numbers; in which case it is more convenient to use one of the faster algorithms, for example, "quick-sort".
By learning how to program on C+.
fdsgfhgdfhgdf
program to find maximum of two numbers using pointers
In programming this could be achieved using a numeric bubble sort. Excel allows this type of sorting to be used.
public class BubbleSortAscendingOrderDemo { public static void main(String a[]) { //Numbers which need to be sorted int numbers[] = {23,5,23,1,7,12,3,34,0}; //Displaying the numbers before sorting System.out.print("Before sorting, numbers are "); for(int i = 0; i < numbers.length; i++) { System.out.print(numbers[i]+" "); } System.out.println(); //Sorting in ascending order using bubble sort bubbleSortInAscendingOrder(numbers); //Displaying the numbers after sorting System.out.print("Before sorting, numbers are "); for(int i = 0; i < numbers.length; i++) { System.out.print(numbers[i]+" "); } }
There are several methods available to sort numbers. A simple way to program sorting is the so-called "bubble-sort". This is inefficient for larger lists of numbers; in which case it is more convenient to use one of the faster algorithms, for example, "quick-sort".
Sorting is not a microprocessor specific thing. Sorting requires a program and, as such, is not dependent on which microprocessor is involved.
By learning how to program on C+.
For program in C language: http://wiki.answers.com/Q/Program_to_print_sorting_of_an_array_in_clanguage&updated=1&waNoAnsSet=2 Program in C++: #include #include void main() { int i,j,n,t,a[50]; clrscr(); cout"%d",&n; cout
fdsgfhgdfhgdf
sorting can be described as the arrangement of text/numbers either in Ascending or Descending order
Its simple!dirve a menu based prog by using switch case & then apply every sorting function to it.
program to find maximum of two numbers using pointers
Any number variable is extends the Number in java and it already implemented Comparable interface. So when you have a list of numbers, just use Arrays.sort().
That depends on the sorting algorithm you'd like to use. Usually, Quick-sort is good enough for your purposes, but if your application needs to be fast, you might want to read some documents about sorting.
largest of a, b, c :a > b ? a > c ? a : c : b > c ? b : c