Computer Science, asked by aharini345, 3 months ago

write a program to input and store 10 integer elements in an array. using bubble sort method sort and display the elements in descending order. first n best answer will be marked as brainlist.​

Answers

Answered by AdityaSingh2746
0

i = 1

numbers = []

while i == 10:

number = input(' number: ')

numbers.append(number)

i += i + 1

print(sort(numbers)) # asscending

print(sort(numbers, reverse=True)) # descending

Similar questions