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


Logic-1 > old35
prev  |  next  |  chance

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

old35(3) → true
old35(10) → true
old35(15) → false

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

public boolean old35(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: 122.5

Copyright Nick Parlante 2017 - privacy