answersLogoWhite

0

Cls

input"no. Of elements",n

for i=1 to n

input,a(i)

next i

for i=1 to n-1

for j=i+1 to n

if a(i)>a(j) then swap a(i),a(j)

next j

next i

for i=1 to n

print, a(i)

next i

end

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you sort three nondescending numbers?

In ascending order, perhaps!


How do you sort three ascending numbers?

Highlight the numbers and click on the sort button. You can sort ascending (smallest to largest) or descending (largest to smallest).


Which action do you perform on a data source to reorganize the order of the record for a merge?

You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.You can sort the data in ascending or descending order.


How to sort the sum of numbers in qbasic?

You use the relevant formula.


What does it mean to sort a table in ascending order?

To sort from smallest to largest. Ascending means to go up.


How you rearrange the data in ascending or descending order?

Select the data you want to sort. Then use the Sort option, picking A to Z for ascending order or Z to A for descending order. You can choose which columns to sort by and even to do primary and secondary sorts, like sorting first by surname and then by first name.


What is sort ascending?

Sorting in ascending order refers to arranging a set of data from the smallest to the largest value. This can apply to numbers, letters, or dates, where numbers are sorted from lowest to highest, letters from A to Z, and dates from the earliest to the latest. For example, if you have the numbers 3, 1, and 2, sorting them in ascending order would result in 1, 2, and 3.


What is it called when a feature sorts data into ascending alphabetical or numerical order?

ascending sort


How do you display 15 numbers in an ascending order using an array?

Sort the array then traverse the array, printing the element values as you go.


What two ways can you sort information?

In ascending order and in descending order.


You can sort numeric fields in ascending order only?

No. They can be sorted either ways. Ascending or Descending.


What is a VB script to sort a string in ascending order?

uitihyiuiphoiphuihyi