about | help | code help+videos | done | prefs |
middleOf3
int middleOf3(int n1, int n2, int n3). Given 3 numbers, return the median, which is the middle value. If there is no middle value, as in the case where two numbers are the same, return the value of the number that appears twice. middleOf3(1, 2, 3) → 2 middleOf3(5, 5, 6) → 5 middleOf3(5, 6, 6) → 6 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 135
Copyright Nick Parlante 2017 - privacy