answersLogoWhite

0

main ()

{

int i,j,a,n,number[30];

printf ("Enter the value of N\n");

scanf ("%d", &n);

printf ("Enter the numbers \n");

for (i=0; i

scanf ("%d",&number[i]);

for (i=0; i

{

for (j=i+1; j

{ if (number[i] < number[j])

{ a = number[i];

number[i] = number[j];

number[j] = a;

}

}

}

printf ("The numbers arrenged in ascending order are given below\n");

for (i=0; i

printf ("%10d\n",number[i]);

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Which way is ascending and descending?

Ascending means increasing in value or moving higher, while descending means decreasing in value or moving lower. In a numeric sequence, ascending would go from lowest to highest, while descending would go from highest to lowest.


What is it called to arrange in order from greastest to least?

descending


What will be the program to arrange numbers stored in array in ascending order using pointers?

sorry


How do you arrange words in cline and examples?

its arranged by ascending and descending order.........


Is descending order from high to low?

Numbers are said to be in descending order when they are arranged from the largest to the smallest number.


What does descending mean in maths?

In Maths, we often talk about ascending and descending order. Ascending order is writing numbers from smallest to largest. Descending order is writing numbers from largest to smallest.


When numbers are largest to smallest?

descending order


Draw a flowchart to arrange 3 numbers in ascending order?

draw a flow chart to arrange 3 numbers in ascending order


C program to fine the largest of 10 given number?

first sort the ten numbers in descending order and print the first number. That will be the largest no


If you arrange all the one digit odd numbers in ascending order and then in descending order to form five digit numbers what digit occupies the same place value?

this question is not soluble.the information given reduces the no. of candidates from 9999 to 900 but cant get closer than that


Find the 2nd largest and 2nd smallest from a set of a numbers using 8085 microprocessor?

Arrange the any one of the order and store the memory in order vice (ie.Ascending for Descending) Then print the second data of that array it is simple way


What are the numbers with the digits in descending order?

There are too many to enumerate.