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

 

pais@kinetigram.com logic02 > L26_max1020
prev  |  next  |  chance

APCS Logic 2, Problem 6. 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.


L26_max1020(11, 19) → 19
L26_max1020(19, 11) → 19
L26_max1020(11, 9) → 11

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

public int L26_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: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy