H7 Methoden - Testen - BMI calculator

Sign in to test your solution.
using System; namespace BMICalculator { public class Program { public static void Main(string[] args) { //JE MAG DE CODE IN DE MAIN METHODE NIET AANPASSEN Console.WriteLine("=== BMI Calculator ==="); Console.WriteLine("Geef je gewicht in kg:"); double gewicht = double.Parse(Console.ReadLine()); Console.WriteLine("Geef je lengte in meter (bijv. 1.75):"); double lengte = double.Parse(Console.ReadLine()); double bmi = BerekenBMI(gewicht, lengte); string categorie = GeefBMICategorie(bmi); Console.WriteLine($"\nJe BMI: {bmi}"); Console.WriteLine($"Categorie: {categorie}"); } // Schrijf hier je methode BerekenBMI // Schrijf hier je methode GeefBMICategorie } }
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.