A simple Body Mass Index (BMI) Calculator
#include <stdio.h>
/**
* BMI = weight_kg / (height_m * height_m)^M
* if BMI < 18 = underweight^M
* if BMI 18 ... 25 = normal^M
* if BMI 25 ... 29 = overweight^M
* if BMI > 30 = obesity^M
*/
int main(void)
{
int weight, height, bmi;
...
mnbaiden.hashnode.dev1 min read