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

 

jebbert@volusia.k12.fl.us > jan11_2016_APSLHLevenOrOdd
prev  |  next  |  chance

Write a method that returns "odd" if the input parameter is an odd number. Return "even" if the input parameter is an even number. Note that the input parameter will be a positive integer.


jan11_2016_APSLHLevenOrOdd(43) → "odd"
jan11_2016_APSLHLevenOrOdd(68) → "even"
jan11_2016_APSLHLevenOrOdd(1) → "odd"

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

public String jan11_2016_APSLHLevenOrOdd(int num) { }

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

Copyright Nick Parlante 2017 - privacy