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

 

amjadm@miamioh.edu > isStrange
prev  |  next  |  chance

Strange number is a two-digit int that one of the digits is odd and one of the digits is even. Return true if the given number is strange. Also, return true if both digits are either even or odd and greater than 6.


isStrange(10) → true
isStrange(20) → false
isStrange(12) → true

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

public boolean isStrange(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: 105

Copyright Nick Parlante 2017 - privacy