fork download
  1. ; your code goes here
  2. (define (f1 a) (if (= a 0) 0
  3. (/ 1 a)))
  4. (define (f2 a) (cond((= a 0) 0)
  5. ((= a 1) 1)
  6. (else (/ 1 a)))
  7. )
  8.  
  9. (display (f1 5))
  10. (newline)
  11. (display (f1 0)) (newline)
  12. (display (list (f2 0) (f2 1) (f2 4)) )
Success #stdin #stdout 0.02s 10884KB
stdin
Standard input is empty
stdout
1/5
0
(0 1 1/4)