add ch1 ex2

This commit is contained in:
Juthatip McDevitt 2025-07-26 14:54:05 -05:00
parent 449b6ae825
commit 4790e8cae6

11
chapter_1/ex_2.rkt Normal file
View file

@ -0,0 +1,11 @@
#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