to input 8 numbers into an array and reverse the original array and print the modified array
Answers
Answered by
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
English,
1 month ago
Math,
1 month ago
Social Sciences,
2 months ago
Math,
10 months ago
Math,
10 months ago