Computer Science, asked by sarthakkundu8, 2 months ago

to input 8 numbers into an array and reverse the original array and print the modified array​

Answers

Answered by siddharthgager30
0

program

print("Enter the 8 numbers")

arr= [int(input("Enter: "))for i in range(8)]

print(arr)

arr.reverse()

print(" The modified array list is: ",arr)

you haven't metion the programming language bro this program is in python

you can also use arr. sort to convert it into ascending order

have a cheerful day!

Similar questions