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

Stats:

CreatedAug 5, 2016
PublishedAug 5, 2016
Warriors Trained191610
Total Skips11870
Total Code Submissions356439
Total Times Completed152189
Haskell Completions1193
F# Completions353
JavaScript Completions53743
C# Completions8920
R Completions734
Python Completions52271
Swift Completions3403
C++ Completions7043
Java Completions15887
Rust Completions2568
TypeScript Completions2407
Ruby Completions2226
Crystal Completions33
C Completions3402
CoffeeScript Completions19
Julia Completions75
NASM Completions25
COBOL Completions41
Scala Completions153
PHP Completions1078
Kotlin Completions148
Total Stars756
% of votes with a positive feedback rating89% of 10151
Total "Very Satisfied" Votes8283
Total "Somewhat Satisfied" Votes1547
Total "Not Satisfied" Votes321
Total Rank Assessments9
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • wichu Avatar
  • GiacomoSorbi Avatar
  • suic Avatar
  • iskoch Avatar
  • silfurulfur Avatar
  • Chrono79 Avatar
  • imjasonmiller Avatar
  • kazk Avatar
  • JohanWiltink Avatar
  • Blind4Basics Avatar
  • Voile Avatar
  • Madjosz Avatar
  • k.steflovic Avatar
  • Souzooka Avatar
  • rowcased Avatar
  • arkada38 Avatar
  • Egorka11 Avatar
  • jarhill0 Avatar
  • monadius Avatar
  • hobovsky Avatar
  • solitude Avatar
  • trashy_incel Avatar
  • SunMaster Avatar
  • user8436785 Avatar
  • pjanoo Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • pskv Avatar
  • KayleighWasTaken Avatar
Ad