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

 

middleNum


Given three different integers, return the one with a value between the other two. (Return the middle value when they are placed in order.)


middleNum(1, 2, 3) → 2
middleNum(5, 3, 8) → 5
middleNum(9, 1, 7) → 7

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

public int middleNum(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