136k views
3 votes
You are given an array x of int elements along with an int variable n that contains the number of elements in the array . there are no duplicates in this array . you are also given an int variable m that has been declared . assign to m the median value of the array .

User Marlhex
by
5.9k points

1 Answer

5 votes
x = [1,2,3,4,5]

n = 5

m = 3

Replace with any numbers you want.
User Malik Bilal
by
6.0k points