Comment calculer l'hypoténuse d'un triangle rectangle ?
hypoténuse(a, b) (ou hypotenuse) renvoie racine(a² + b²) :
affiche hypoténuse(3, 4) // 5 // distance entre deux points x1, y1, x2, y2 est un nombre x1 vaut 0 y1 vaut 0 x2 vaut 6 y2 vaut 8 affiche hypoténuse(x2 - x1, y2 - y1) // 10