forgot password | create account
Or use
about | help | code help+videos | done | prefs
CodingBat code practice


Warmup-1 > hasTeen
prev  |  next  |  chance

We'll say that a number is "teen" if it is in the range 13..19 inclusive. Given 3 int values, return true if 1 or more of them are teen.

hasTeen(13, 20, 10) → true
hasTeen(20, 19, 10) → true
hasTeen(20, 10, 13) → true

...Save, Compile, Run

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

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

Copyright Nick Parlante 2016 - privacy