I\'m having trouble solving this problem... Here is the code, (defun stars(y) (d
ID: 3614503 • Letter: I
Question
I'm having trouble solving this problem...Here is the code,
(defun stars(y)==============================================================
(do ((i 0 (+ i 1)))
( (>= i y))
(do ((j i (- j 1)))
( (< j 0))
(format t "*"))
(format T "~%"))
===================================================================
And here is it in another way...
(defun star (amt stars row)
(if (> row amt) nil
(if (= stars 0) ((format t "~%") (star amt (+ row 1) (+ row 1)))
((format t "*") (star amt (- star 1) row))
)
)
)
Thanks
Explanation / Answer
* ** *** **** *****
And the above code is just correct... the second code is theneeded code... because I need the program in a cursive functioncall.
Thanks
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.