id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

norm.krumpe@muohio.edu ifproblems > median
prev  |  next  |  chance

The median of three numbers is the number in the middle when all 3 numbers are in order. Given three integers, though not necessarily in order, return the median.


median(3, 4, 5) → 4
median(5, 3, 4) → 4
median(0, 1, 1) → 1

...Save, Compile, Run (ctrl-enter)

int median(int a, int b, int c) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy