Computer Science, asked by supreetidebnath597, 8 months ago

Create an array NT [] to store any 10 integers . Arrange them in descending order and print them.​


supreetidebnath597: same to you
supreetidebnath597: Good morning
supreetidebnath597: ache hai aur tum kaise ho?
supreetidebnath597: no

Answers

Answered by Anonymous
2

Answer:

Loop through the array an select an element .inner loop will be used to compare select elements from outer loop with rest of the elements of array .if any elements is greater than the selected elements then swap the value.computer this prosses till entire list is sorted the descending order

Explanation:

please follow me I am also follow back

Answered by Anonymous
3

Answer:

The program output is also shown below.

* C program to accept a set of numbers and arrange them.

* in a descending order.

int number[30];

int i, j, a, n;

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

scanf("%d", &n);

printf("Enter the numbers \n");

for (i = 0; i < n; ++i)

Similar questions