MNMichael Nyarko Baideninmnbaiden.hashnode.dev·Sep 9, 2023 · 1 min readA 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; ...00
MNMichael Nyarko Baideninmnbaiden.hashnode.dev·Sep 2, 2023 · 1 min readA Grade Calculator#include <stdio.h> /* * main - a function that prints the grade of students * grades - A=80 ... 100, B=70...79, C=60...69, D=50...59, E=40...49, F <40 * the grades will be broken down sub-grading */ int main(void) { int score; printf...00