0

how to Find The median With If Statement ?! anyone help me ..

11th Jan 2017, 4:08 PM
Mhamed Hayssam
Mhamed Hayssam - avatar
2 Answers
0
if you are using an array: int length = array.length; int medianIndex = length/2; now, to get the median: array[medianIndex]; that is the most basic way and will only work if your data is Ungrouped with an ODD Length/Count/Size.
12th Jan 2017, 10:25 PM
Erwin Mesias
Erwin Mesias - avatar
0
Thank you bro
12th Jan 2017, 10:31 PM
Mhamed Hayssam
Mhamed Hayssam - avatar