Generation

generate functionMon, 17 Apr 2023

Having as input data a person's height, build an algorithm that calculates his ideal weight, using the following formula: (72.7*height) – 58

double get_ideal_wight(double height) { return (72.7*height) - 58 }

Want to kickstart your project?Use the new AI Studio to create your code