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

 

norm.krumpe@muohio.edu program10 > mostlyOdd
prev  |  next  |  chance

Given a non-negative integer, return true if most of its digits are odd (more digits are odd than are even). An odd number is any number ending with 1, 3, 5, 7, or 9


mostlyOdd(47) → false
mostlyOdd(79) → true
mostlyOdd(286) → false

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

boolean mostlyOdd(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: 200

Copyright Nick Parlante 2017 - privacy