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

 

simona1@sfusd.edu functions3 > apcsaPrimitivesRemainderSame
prev  |  next  |  chance

Given an int input num, return true if the remainder after dividing by the two numbers a and b is the same. Use the % (remainder) operator to do this.


apcsaPrimitivesRemainderSame(1, 3, 9) → true
apcsaPrimitivesRemainderSame(5, 3, 4) → false
apcsaPrimitivesRemainderSame(13, 3, 4) → true

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

public boolean apcsaPrimitivesRemainderSame(int num, 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: 120 Post-solution available

Copyright Nick Parlante 2017 - privacy