I have a simple piece of code but I don't know why it doesn't return.
(define (check n)
(if (= (/ n 10) 0)
1
2))
So it is basically suppose to check if n/10 would give a 0, and if so it should return 1, if not it should return 2. but if i run:
(check 3)
It just doesn't return at all. It's as though its staying in an infinite loop. Any help would be great! Thanks.
Aucun commentaire:
Enregistrer un commentaire