Skip to content

2014-1: It Is All Right

Write a dfn that takes the length of the legs of a triangle as its left argument, and the length of the hypotenuse as its right argument and returns 1 if the triangle is a right triangle, 0 otherwise.

Examples:

      3 4 (your_function) 5
1
      2 3 (your_function) 4
0
your_function ←

Solutions

Video Thumbnail YouTube

Chat transcript Code on GitHub