sicp_examples/chapter_1/ex_2.rkt
2025-07-26 14:54:05 -05:00

11 lines
No EOL
193 B
Racket

#lang sicp
;Translate the following expression into prefix (5+4+(2-(3-(6+4/5))))/(3(6-2)(2-7))
(/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5)))))
(* 3 (* (- 6 2) (- 2 7)))
)
; the result is -37/150