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

 

mod-introduction > or35
prev  |  next  |  chance

Return true if the given non-negative number is a multiple of 3 or a multiple of 5. Use the % "mod" operator -- see Introduction to Mod


or35(3) → true
or35(10) → true
or35(8) → false

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

public boolean or35(int n) { }

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

Copyright Nick Parlante 2017 - privacy