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

 

pais@kinetigram.com > L18_hasTeen
prev  |  next  |  chance

APCS Logic 1, Problem 8. 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.


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

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

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

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 Post-solution available

Copyright Nick Parlante 2017 - privacy