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

 

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

We'll say a number is special if it is a multiple of 15 or if it is one more than a multiple of 15. Return true if the given non-negative number is special. Use the % "mod" operator --


special15(15) → true
special15(30) → true
special15(34) → false

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

public boolean special15(int a){ }

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

Copyright Nick Parlante 2017 - privacy