i need help to calculate the middle number anyone know
dont make it too complicated
With your code, this shouldn't be too complicated. Just simply pack all the variables into one list, remove the largest and smallest, then keep only the middle variable in there.
Here is a example:
I know this is complex, but that's the only way I found so far.