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

 

srp4379@lausd.net quiz3 > oddSum
prev  |  next  |  chance

boolean oddSum(int a, int b). Given two integers, return true if their sum is odd, return false if their sum is even. A number is odd if, when you divide it by 2, its remainder is NOT zero, e.g. num % 2 != 0.


oddSum(1, 3) → false
oddSum(2, 4) → false
oddSum(2, 3) → true

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

boolean oddSum(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: 100

Copyright Nick Parlante 2017 - privacy