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

 

orion.a.smith@gmail.com apcsa-primitives > apcsaPrimitivesIsNumSum
prev  |  next  |  chance

Given three ints a, b and c, return true if one of the ints is the sum of the other two, or false if none of the ints are the sum of the other two.


apcsaPrimitivesIsNumSum(5, 2, 7) → true
apcsaPrimitivesIsNumSum(7, 3, 4) → true
apcsaPrimitivesIsNumSum(10, 2, 9) → false

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

public boolean apcsaPrimitivesIsNumSum(int a, int b, int c) { }

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: 150 Post-solution available

Copyright Nick Parlante 2017 - privacy