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

 

jebbert@volusia.k12.fl.us > test2020_10_01_APP1SLHL_larger
prev  |  next  |  chance

Write a method that returns the greater of the two input parameters. If the two input parameters match, return a zero.


test2020_10_01_APP1SLHL_larger(5, 7) → 7
test2020_10_01_APP1SLHL_larger(824, 22) → 824
test2020_10_01_APP1SLHL_larger(521, 3259) → 3259

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

public int test2020_10_01_APP1SLHL_larger(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: 220

Copyright Nick Parlante 2017 - privacy