8 kyu
Drink about
21,164 of 51,679darlanmendonca
Description:
- Kids drink toddy.
- Teens drink coke.
- Young adults drink beer.
- Adults drink whisky.
Make a function that receive age, and return what they drink.
Rules:
- Children under 14 old.
- Teens under 18 old.
- Young under 21 old.
- Adults have 21 or more.
Examples: (Input --> Output)
13 --> "drink toddy"
17 --> "drink coke"
18 --> "drink beer"
20 --> "drink beer"
30 --> "drink whisky"
Fundamentals
Similar Kata:
Stats:
Created | Oct 9, 2015 |
Published | Oct 9, 2015 |
Warriors Trained | 63261 |
Total Skips | 3012 |
Total Code Submissions | 127429 |
Total Times Completed | 51679 |
JavaScript Completions | 21164 |
Python Completions | 17833 |
CoffeeScript Completions | 103 |
C# Completions | 2682 |
F# Completions | 304 |
PHP Completions | 1945 |
Ruby Completions | 663 |
C++ Completions | 6497 |
Haskell Completions | 221 |
COBOL Completions | 29 |
Crystal Completions | 8 |
Julia Completions | 31 |
C Completions | 800 |
TypeScript Completions | 493 |
Scala Completions | 36 |
Lua Completions | 47 |
Java Completions | 217 |
Total Stars | 237 |
% of votes with a positive feedback rating | 90% of 3915 |
Total "Very Satisfied" Votes | 3238 |
Total "Somewhat Satisfied" Votes | 577 |
Total "Not Satisfied" Votes | 100 |