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

 

Warmup-1 > max1020
prev  |  next  |  chance

Given 2 positive int values, return the larger value that is in the range 10..20 inclusive, or return 0 if neither is in that range.


max1020(11, 19) → 19
max1020(19, 11) → 19
max1020(11, 9) → 11

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

public int max1020(int a, int b) { }

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: 178.0

Copyright Nick Parlante 2017 - privacy