Oppervlakte driehoek - Refactoring

Sign in to test your solution.
basis = float(input("Hoe lang is de basis van jouw driehoek in cm: ")) hoogte = float(input("Hoe lang is de hoogte van jouw driehoek in cm: ")) opp = round(basis * hoogte / 2, 2) print("De oppervlakte van een driehoek met basis", basis, "cm en hoogte", hoogte, "cm is", opp, "cm².")
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona. This feature is still in full development, so we're happy to hear about your suggestions and issues using the contact form.