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

 

andersoniii.edwin@cusd80.com > love9
prev  |  next  |  chance

The number 9 is a truly great number. Given two int values, a and b, return true if either one is 9. Or if their sum or difference is 9. Note: the function Math.abs(num) computes the absolute value of a number


love9(4, 5) → true
love9(3, 10) → false
love9(9, 8) → true

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

public boolean love9(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: 101

Copyright Nick Parlante 2017 - privacy