8 kyu
Calculate BMI
1,193 of 152,189wichu
Description:
Write function bmi that calculates body mass index (bmi = weight / height2).
if bmi <= 18.5 return "Underweight"
if bmi <= 25.0 return "Normal"
if bmi <= 30.0 return "Overweight"
if bmi > 30 return "Obese"
Fundamentals
Similar Kata:
Stats:
Created | Aug 5, 2016 |
Published | Aug 5, 2016 |
Warriors Trained | 191610 |
Total Skips | 11870 |
Total Code Submissions | 356439 |
Total Times Completed | 152189 |
Haskell Completions | 1193 |
F# Completions | 353 |
JavaScript Completions | 53743 |
C# Completions | 8920 |
R Completions | 734 |
Python Completions | 52271 |
Swift Completions | 3403 |
C++ Completions | 7043 |
Java Completions | 15887 |
Rust Completions | 2568 |
TypeScript Completions | 2407 |
Ruby Completions | 2226 |
Crystal Completions | 33 |
C Completions | 3402 |
CoffeeScript Completions | 19 |
Julia Completions | 75 |
NASM Completions | 25 |
COBOL Completions | 41 |
Scala Completions | 153 |
PHP Completions | 1078 |
Kotlin Completions | 148 |
Total Stars | 756 |
% of votes with a positive feedback rating | 89% of 10151 |
Total "Very Satisfied" Votes | 8283 |
Total "Somewhat Satisfied" Votes | 1547 |
Total "Not Satisfied" Votes | 321 |
Total Rank Assessments | 9 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |